type AuthToken = string | undefined; interface Auth { /** * Which part of the request do we use to send the auth? * * @default 'header' */ in?: 'header' | 'query' | 'cookie'; /** * A unique identifier for the security scheme. * * Defined only when there are multiple security schemes whose `Auth` * shape would otherwise be identical. */ key?: string; /** * Header or query parameter name. * * @default 'Authorization' */ name?: string; scheme?: 'basic' | 'bearer'; type: 'apiKey' | 'http'; } interface SerializerOptions { /** * @default true */ explode: boolean; style: T; } type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited'; type ObjectStyle = 'form' | 'deepObject'; type QuerySerializer = (query: Record) => string; type BodySerializer = (body: unknown) => unknown; type QuerySerializerOptionsObject = { allowReserved?: boolean; array?: Partial>; object?: Partial>; }; type QuerySerializerOptions = QuerySerializerOptionsObject & { /** * Per-parameter serialization overrides. When provided, these settings * override the global array/object settings for specific parameter names. */ parameters?: Record; }; type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace'; type Client$1 = { /** * Returns the final request URL. */ buildUrl: BuildUrlFn; getConfig: () => Config; request: RequestFn; setConfig: (config: Config) => Config; } & { [K in HttpMethod]: MethodFn; } & ([SseFn] extends [never] ? { sse?: never; } : { sse: { [K in HttpMethod]: SseFn; }; }); interface Config$1 { /** * Auth token or a function returning auth token. The resolved value will be * added to the request payload as defined by its `security` array. */ auth?: ((auth: Auth) => Promise | AuthToken) | AuthToken; /** * A function for serializing request body parameter. By default, * {@link JSON.stringify()} will be used. */ bodySerializer?: BodySerializer | null; /** * An object containing any HTTP headers that you want to pre-populate your * `Headers` object with. * * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} */ headers?: RequestInit['headers'] | Record; /** * The request method. * * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more} */ method?: Uppercase; /** * A function for serializing request query parameters. By default, arrays * will be exploded in form style, objects will be exploded in deepObject * style, and reserved characters are percent-encoded. * * This method will have no effect if the native `paramsSerializer()` Axios * API function is used. * * {@link https://swagger.io/docs/specification/serialization/#query View examples} */ querySerializer?: QuerySerializer | QuerySerializerOptions; /** * A function validating request data. This is useful if you want to ensure * the request conforms to the desired shape, so it can be safely sent to * the server. */ requestValidator?: (data: unknown) => Promise; /** * A function transforming response data before it's returned. This is useful * for post-processing data, e.g., converting ISO strings into Date objects. */ responseTransformer?: (data: unknown) => Promise; /** * A function validating response data. This is useful if you want to ensure * the response conforms to the desired shape, so it can be safely passed to * the transformers and returned to the user. */ responseValidator?: (data: unknown) => Promise; } /** * Arbitrary metadata passed through the `meta` request option. */ interface ClientMeta { } type ServerSentEventsOptions = Omit & Pick & { /** * Fetch API implementation. You can use this option to provide a custom * fetch instance. * * @default globalThis.fetch */ fetch?: typeof fetch; /** * Implementing clients can call request interceptors inside this hook. */ onRequest?: (url: string, init: RequestInit) => Promise; /** * Callback invoked when a network or parsing error occurs during streaming. * * This option applies only if the endpoint returns a stream of events. * * @param error The error that occurred. */ onSseError?: (error: unknown) => void; /** * Callback invoked when an event is streamed from the server. * * This option applies only if the endpoint returns a stream of events. * * @param event Event streamed from the server. * @returns Nothing (void). */ onSseEvent?: (event: StreamEvent) => void; serializedBody?: RequestInit['body']; /** * Default retry delay in milliseconds. * * This option applies only if the endpoint returns a stream of events. * * @default 3000 */ sseDefaultRetryDelay?: number; /** * Maximum number of retry attempts before giving up. */ sseMaxRetryAttempts?: number; /** * Maximum retry delay in milliseconds. * * Applies only when exponential backoff is used. * * This option applies only if the endpoint returns a stream of events. * * @default 30000 */ sseMaxRetryDelay?: number; /** * Optional sleep function for retry backoff. * * Defaults to using `setTimeout`. */ sseSleepFn?: (ms: number) => Promise; url: string; }; interface StreamEvent { data: TData; event?: string; id?: string; retry?: number; } type ServerSentEventsResult = { stream: AsyncGenerator ? TData[keyof TData] : TData, TReturn, TNext>; }; type ErrInterceptor = (error: Err, /** response may be undefined due to a network error where no response object is produced */ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */ request: Req | undefined, options: Options) => Err | Promise; type ReqInterceptor = (request: Req, options: Options) => Req | Promise; type ResInterceptor = (response: Res, request: Req, options: Options) => Res | Promise; declare class Interceptors { fns: Array; clear(): void; eject(id: number | Interceptor): void; exists(id: number | Interceptor): boolean; getInterceptorIndex(id: number | Interceptor): number; update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false; use(fn: Interceptor): number; } interface Middleware { error: Interceptors>; request: Interceptors>; response: Interceptors>; } type ResponseStyle = 'data' | 'fields'; interface Config extends Omit, Config$1 { /** * Base URL for all requests made by this client. */ baseUrl?: T['baseUrl']; /** * Fetch API implementation. You can use this option to provide a custom * fetch instance. * * @default globalThis.fetch */ fetch?: typeof fetch; /** * Please don't use the Fetch client for Next.js applications. The `next` * options won't have any effect. * * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead. */ next?: never; /** * Return the response data parsed in a specified format. By default, `auto` * will infer the appropriate method from the `Content-Type` response header. * You can override this behavior with any of the {@link Body} methods. * Select `stream` if you don't want to parse response data at all. * * @default 'auto' */ parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text'; /** * Should we return only data or multiple fields (data, error, response, etc.)? * * @default 'fields' */ responseStyle?: ResponseStyle; /** * Throw an error instead of returning it in the response? * * @default false */ throwOnError?: T['throwOnError']; } interface RequestOptions extends Config<{ responseStyle: TResponseStyle; throwOnError: ThrowOnError; }>, Pick, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> { /** * Any body that you want to add to your request. * * {@link https://developer.mozilla.org/docs/Web/API/fetch#body} */ body?: unknown; path?: Record; query?: Record; /** * Security mechanism(s) to use for the request. */ security?: ReadonlyArray; url: Url; } interface ResolvedRequestOptions extends RequestOptions { headers: Headers; serializedBody?: string; } type RequestResult = ThrowOnError extends true ? Promise ? TData[keyof TData] : TData : { data: TData extends Record ? TData[keyof TData] : TData; request: Request; response: Response; }> : Promise ? TData[keyof TData] : TData) | undefined : ({ data: TData extends Record ? TData[keyof TData] : TData; error: undefined; } | { data: undefined; error: TError extends Record ? TError[keyof TError] : TError; }) & { /** request may be undefined, because error may be from building the request object itself */ request?: Request; /** response may be undefined, because error may be from building the request object itself or from a network error */ response?: Response; }>; interface ClientOptions$1 { baseUrl?: string; responseStyle?: ResponseStyle; throwOnError?: boolean; } type MethodFn = (options: Omit, 'method'>) => RequestResult; type SseFn = (options: Omit, 'method'>) => Promise>; type RequestFn = (options: Omit, 'method'> & Pick>, 'method'>) => RequestResult; type BuildUrlFn = ; query?: Record; url: string; }>(options: TData & Options$1) => string; type Client = Client$1 & { interceptors: Middleware; }; interface TDataShape { body?: unknown; headers?: unknown; path?: unknown; query?: unknown; url: string; } type OmitKeys = Pick>; type Options$1 = OmitKeys, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit); type ClientOptions = { baseUrl: 'http://localhost:0' | 'https://api.swapkit.dev/tokenlist' | 'https://dev-api.swapkit.dev/tokenlist' | (string & {}); }; type GetTokensResponse = { provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3' | 'SWAPKIT'; chainId?: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; name: string; tags?: { [key: string]: unknown; }; timestamp: string; version?: { major: number; minor: number; patch: number; }; keywords?: Array; count: number; tokens: Array<{ chain?: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; address?: string; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; ticker: string; identifier: string; symbol?: string; name?: string; decimals: number; logoURI?: string; extensions?: { [key: string]: unknown; }; shortCode?: string; coingeckoId?: string; }>; logoURI?: string; url?: string; enabledChainIds?: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'>; supportedChainIds?: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; } | Array<{ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3' | 'SWAPKIT'; chainId?: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; name: string; tags?: { [key: string]: unknown; }; timestamp: string; version?: { major: number; minor: number; patch: number; }; keywords?: Array; count: number; tokens: Array<{ chain?: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; address?: string; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; ticker: string; identifier: string; symbol?: string; name?: string; decimals: number; logoURI?: string; extensions?: { [key: string]: unknown; }; shortCode?: string; coingeckoId?: string; }>; logoURI?: string; url?: string; enabledChainIds?: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'>; supportedChainIds?: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; }>; type SearchTokensResponse = { tokens: Array<{ identifier: string; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; ticker: string; symbol?: string; name?: string; address?: string; decimals: number; logoURI?: string; coingeckoId?: string; chain: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; providers: Array<'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>; marketCapUsd?: number; }>; total: number; page: number; limit: number; hasMore: boolean; }; type GetProvidersResponse = Array<{ name: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; displayName?: string; displayNameLong?: string; keywords?: Array; count: number; logoURI?: string; url?: string; enabledChainIds?: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; supportedActions?: Array<'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'>; supportedChainIds?: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; }>; type GetProvidersStatusResponse = { providersChains: Array<{ name: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; supportedChainsGlobal: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; enabledChainsGlobal: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; disabledChainsGlobal: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; enabledChainsApiKey: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; disabledChainsApiKey: Array<'36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'>; }>; }; type GetProviderIdentifiersMappingResponse = Array<{ /** * SwapKit token identifier */ swapkitIdentifier: string; /** * Mapping of provider names to their token identifiers */ providerMapping: { [key: string]: string; }; }>; type GetAssetProvidersResponse = Array; type GetSwapFromAssetsResponse = Array; type GetSwapToAssetsResponse = Array; type GetWhitelistPoolsResponse = Array<{ name: string; timestamp: string; version?: { major: number; minor: number; patch: number; }; keywords?: Array; tokens: Array<{ chain?: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; address?: string; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; ticker: string; identifier: string; symbol?: string; name?: string; decimals: number; logoURI?: string; extensions?: { [key: string]: unknown; }; shortCode?: string; coingeckoId?: string; } & { cg?: unknown; }>; url: string; }>; type GetWhitelistTokensResponse = Array<{ name: string; timestamp: string; version?: { major: number; minor: number; patch: number; }; keywords?: Array; tokens: Array<{ chain?: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; address?: string; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; ticker: string; identifier: string; symbol?: string; name?: string; decimals: number; logoURI?: string; extensions?: { [key: string]: unknown; }; shortCode?: string; coingeckoId?: string; } & { cg?: unknown; }>; url: string; }>; type ScreenAddressRequest = { addresses: string | Array; chains: string | Array; }; type ScreenAddressResponse = { confirm: boolean; isBlacklisted?: boolean; isRisky?: boolean; isSanctioned?: boolean; module?: number; }; type TrackTransactionRequest = { /** * Hash for the first transaction broadcasted by the end user. e.g. `88D1819378ECD09E5284C54937CDC1E99B52F253C007617A02DD1200710CE677` */ hash?: string; /** * ChainId for the hash. e.g. `thorchain-1` */ chainId?: string; /** * Block number. Required for Polkadot chain. e.g. `123456` */ block?: number; /** * Deposit channel ID, required for Chainflip if tx was broadcasted without wallet connection */ depositChannelId?: string; /** * Deposit address associated with a deposit channel */ depositAddress?: string; }; type TrackTransactionResponse = { chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; hash: string; block: number; type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate'; status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed'; trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error'; fromAsset: string; fromAmount: string; fromAddress: string; toAsset: string; toAmount: string; toAddress: string; finalAsset?: { chain: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; symbol: string; ticker: string; decimal?: number; address?: string; isGasAsset: boolean; isSynthetic: boolean; tax?: { buy: number; sell: number; }; }; finalAddress?: string; finalisedAt: number; transient?: { estimatedTimeToComplete: number; currentLegIndex?: number; estimates?: { inboundObservation: number; inboundConfirmation: number; streamingSwap: number; outboundDelay: number; outboundObservation: number; currentStage: string; }; providerDetails?: { streamingDetails?: { quantity?: number; count?: number; interval?: number; subSwapsMap?: Array; }; depositChannelId?: string; depositAddress?: string; }; }; meta?: { broadcastedAt?: number; wallet?: string; quoteId?: string; explorerUrl?: string; providerExplorerUrl?: string; affiliate?: string; fees?: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'; providerOrderId?: string; images?: { from?: string; to?: string; provider?: string; chain?: string; }; affiliateFees?: Array<{ affiliate: string; bps: string; isReferrer: boolean; }>; failReason?: string; failTargetAddress?: string; }; payload?: { evmCalldata?: string; evmValue?: string; logs?: unknown; memo?: string; spender?: string; manifest?: unknown; intentHash?: string; thorname?: string; decodedPayload?: unknown; }; legs: Array<{ chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; hash: string; block: number; type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate'; status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed'; trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error'; fromAsset: string; fromAmount: string; fromAddress: string; toAsset: string; toAmount: string; toAddress: string; finalAsset?: { chain: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; symbol: string; ticker: string; decimal?: number; address?: string; isGasAsset: boolean; isSynthetic: boolean; tax?: { buy: number; sell: number; }; }; finalAddress?: string; finalisedAt: number; transient?: { estimatedTimeToComplete: number; currentLegIndex?: number; estimates?: { inboundObservation: number; inboundConfirmation: number; streamingSwap: number; outboundDelay: number; outboundObservation: number; currentStage: string; }; providerDetails?: { streamingDetails?: { quantity?: number; count?: number; interval?: number; subSwapsMap?: Array; }; depositChannelId?: string; depositAddress?: string; }; }; meta?: { broadcastedAt?: number; wallet?: string; quoteId?: string; explorerUrl?: string; providerExplorerUrl?: string; affiliate?: string; fees?: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'; providerOrderId?: string; images?: { from?: string; to?: string; provider?: string; chain?: string; }; affiliateFees?: Array<{ affiliate: string; bps: string; isReferrer: boolean; }>; failReason?: string; failTargetAddress?: string; }; payload?: { evmCalldata?: string; evmValue?: string; logs?: unknown; memo?: string; spender?: string; manifest?: unknown; intentHash?: string; thorname?: string; decodedPayload?: unknown; }; }>; }; type InsertTrackedTransactionRequest = { legs: Array<{ chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; hash: string; block: number; type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate'; status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed'; trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error'; fromAsset: string; fromAmount: string; fromAddress: string; toAsset: string; toAmount: string; toAddress: string; finalAsset?: { chain: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; symbol: string; ticker: string; decimal?: number; address?: string; isGasAsset: boolean; isSynthetic: boolean; tax?: { buy: number; sell: number; }; }; finalAddress?: string; finalisedAt: number; transient?: { estimatedTimeToComplete: number; currentLegIndex?: number; estimates?: { inboundObservation: number; inboundConfirmation: number; streamingSwap: number; outboundDelay: number; outboundObservation: number; currentStage: string; }; providerDetails?: { streamingDetails?: { quantity?: number; count?: number; interval?: number; subSwapsMap?: Array; }; depositChannelId?: string; depositAddress?: string; }; }; meta?: { broadcastedAt?: number; wallet?: string; quoteId?: string; explorerUrl?: string; providerExplorerUrl?: string; affiliate?: string; fees?: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'; providerOrderId?: string; images?: { from?: string; to?: string; provider?: string; chain?: string; }; affiliateFees?: Array<{ affiliate: string; bps: string; isReferrer: boolean; }>; failReason?: string; failTargetAddress?: string; }; payload?: { evmCalldata?: string; evmValue?: string; logs?: unknown; memo?: string; spender?: string; manifest?: unknown; intentHash?: string; thorname?: string; decodedPayload?: unknown; }; }>; depositChannelId?: string; depositAddress?: string; }; type InsertTrackedTransactionResponse = { id: string; hash: string; status: string; message: string; }; type GetGasHistoryResponse = Array<{ id: number; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; value: string; unit: string; createdAt: string; }> | { [key: string]: Array<{ id: number; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; value: string; unit: string; createdAt: string; }>; }; type GetGasPricesResponse = { id: number; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; value: string; unit: string; createdAt: string; } | Array<{ id: number; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; value: string; unit: string; createdAt: string; }>; type GetCachedPriceRequest = { tokens: Array<{ identifier: string; }>; metadata: boolean; }; type GetCachedPriceResponse = Array<{ identifier: string; provider: string; cg?: { id: string; name?: string; market_cap?: number; total_volume?: number; price_change_24h_usd?: number | null; price_change_percentage_24h_usd?: number | null; sparkline_in_7d?: Array; timestamp?: string; }; price_usd?: number; timestamp?: number; error?: string; }>; type CreateBrokerChannelRequest = { destinationAddress: string; sellAsset: { chain: string; asset: string; }; buyAsset: { chain: string; asset: string; }; channelMetadata?: { ccmAdditionalData?: string; gasBudget?: string; message?: string; cfParameters?: string; }; affiliateFees?: Array<{ brokerAddress: string; feeBps: number; }>; refundParameters?: { minPrice?: string; refundAddress?: string; retryDuration?: number; maxOraclePriceSlippage?: number; slippageTolerancePercent?: number; livePriceSlippageTolerancePercent?: number; }; dcaParameters?: { chunkInterval?: number; numberOfChunks?: number; }; brokerCommissionBps?: number; maxBoostFeeBps?: number; }; type CreateBrokerChannelResponse = { depositAddress: string; channelId: string; explorerUrl: string; /** * Error message */ error?: string; }; type RegisterChainflipAffiliateRequest = { withdrawalAddress: string; key: string; updatedBy: { userId?: string; }; }; type RegisterChainflipAffiliateResponse = { affiliateAddress: string; withdrawalAddress: string; explorerUrl: string; }; type WithdrawChainflipAffiliateFeesRequest = { key: string; }; type WithdrawChainflipAffiliateFeesResponse = { txHash: string; explorerUrl: string; amount: string; fee: string; destinationAddress: string; }; type GetQuoteRequest = { /** * Asset to sell */ sellAsset: string; /** * Asset to buy */ buyAsset: string; /** * Amount of asset to sell */ sellAmount: string; providers?: Array; /** * Address to send asset from */ sourceAddress?: string; /** * Address to send asset to */ destinationAddress?: string; /** * Slippage tolerance as a percentage. Default is 3%. */ slippage?: number; /** * Set to true to enable CF boost to speed up Chainflip swaps. BTC only. */ cfBoost?: boolean; /** * Set to true to request a confidential swap through NEAR Intents. NEAR provider only, requires Confidential Intents access (invite-only). */ useConfidentialIntents?: boolean; referrer?: string; /** * EXACT_INPUT (default) or FLEX_INPUT. On FLEX_INPUT, routes whose first-leg provider can't honour the mode are filtered out. Supported first-leg providers: THORCHAIN, MAYACHAIN, CHAINFLIP (incl. streaming variants), NEAR, and FLASHNET. */ quoteType?: 'EXACT_INPUT' | 'FLEX_INPUT'; /** * Set to true to disable on-chain estimation */ disableEstimate?: boolean; /** * Set to true to enable sweeping wallet funds when the transaction would otherwise leave unspendable dust in the address (opt-in). */ enableSweep?: boolean; /** * Maximum execution time in seconds. Routes exceeding this time will be filtered out. */ maxExecutionTime?: number; /** * Affiliate fee in basis points. This should only be used as an override, for example when you have some rebate or discount program. If not provided, the fees configured in your API Key will be used. */ affiliateFee?: number; }; type GetQuoteResponse = { /** * Quote ID */ quoteId: string; /** * Quote creation timestamp (ISO 8601) */ createdAt: string; routes: Array<{ /** * Asset to sell */ sellAsset: string; /** * Sell amount */ sellAmount: string; /** * Asset to buy */ buyAsset: string; /** * Buy amount */ buyAmount?: string; /** * Buy amount max slippage */ buyAmountMaxSlippage?: string; /** * Expected Buy amount */ expectedBuyAmount?: string; /** * Expected Buy amount max slippage */ expectedBuyAmountMaxSlippage?: string; fees: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; /** * The provider of the previous leg in the route, if any */ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * The provider of the next leg in the route, if any */ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * Route ID */ routeId: string; providers: Array<'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>; /** * Expiration */ expiration?: string; estimatedTime?: { /** * Time to receive inbound asset in seconds */ inbound?: number; /** * Time to swap assets in seconds */ swap?: number; /** * Time to receive outbound asset in seconds */ outbound?: number; /** * Total time in seconds */ total: number; }; /** * Total slippage in bps */ totalSlippageBps: number; legs: Array<{ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * Asset to sell */ sellAsset: string; /** * Sell amount */ sellAmount: string; /** * Asset to buy */ buyAsset: string; /** * Buy amount */ buyAmount?: string; /** * Buy amount max slippage */ buyAmountMaxSlippage?: string; /** * Expected Buy amount */ expectedBuyAmount?: string; /** * Expected Buy amount max slippage */ expectedBuyAmountMaxSlippage?: string; fees: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; /** * The provider of the previous leg in the route, if any */ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * The provider of the next leg in the route, if any */ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; warnings: Array<{ code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas' | 'limitPriceBelowSpot' | 'limitPriceWithinFeeGap'; display: string; tooltip?: string; }>; meta: { assets?: Array<{ /** * Asset name */ asset: string; /** * Price in USD */ price: number; /** * Asset image */ image: string; }>; tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>; streamingInterval?: number; maxStreamingQuantity?: number; referrer?: string; /** * The quoteType this route was built for (EXACT_INPUT or FLEX_INPUT). Echoes the request's quoteType so /swap can carry the mode forward. */ quoteType?: 'EXACT_INPUT' | 'FLEX_INPUT'; /** * Approval address for token swap */ approvalAddress?: string; }; nextActions?: Array<{ method: string; url: string; payload?: unknown; }>; }>; /** * Error message */ error?: string; providerErrors?: Array<{ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; errorCode?: 'noRpcFallbacks' | 'requestTimeout' | 'invalidApiVersion' | 'isSanctionedAddress' | 'unknownError' | 'internalServerError' | 'test_error' | 'blockHeaderNotFound' | 'blockHashNotFoundAtHeight' | 'blackListAsset' | 'txHashMissing' | 'invalidAsset' | 'currentBlockHeaderNotFound' | 'failedToRetrieveBalance' | 'failedToRetrieveBlock' | 'failedToRetrieveFees' | 'notImplementedBCH' | 'notImplementedDoge' | 'noPoolsFound' | 'noVaultsFound' | 'noTxFound' | 'multipleCosmosMessages' | 'heightOrHashNotProvided' | 'priceTooVolatile' | 'unknownDenom' | 'invalidBlockHeight' | 'timestampExtrinsicNoArgumentsForBlock' | 'timestampExtrinsicNoTimestampForBlock' | 'noTimestampExtrinsicForHash' | 'timestampExtrinsicNoArgumentsForHash' | 'txMemoUndefined' | 'txMemoIncorrect' | 'txTypeNotFound' | 'txNoMessage' | 'txNotFound' | 'txReceiptNotFound' | 'txParsingError' | 'txLogsParsingError' | 'txFailed' | 'jobDataParsingError' | 'blockNotFound' | 'balanceNotFound' | 'blockbookCallFailed' | 'configError' | 'unsafeTestDatabase' | 'synthSwapDisallowed' | 'noQuoteResponse' | 'noPoolAssetsFound' | 'noThorchainPools' | 'noMayachainPools' | 'noThorchainNetworkInfo' | 'invalidAffiliateFee' | 'invalidBuyAssetAddress' | 'invalidSellAssetAddress' | 'invalidSourceAddress' | 'invalidDestinationAddress' | 'invalidParam' | 'xrpAddressRequiresTag' | 'invalidChainId' | 'invalidChain' | 'unsupportedChainId' | 'unsupportedEVMChainId' | 'unsupportedMethod' | 'unsupportedProvider' | 'unsupportedProgram' | 'unsupportedEvent' | 'invalidParamsForMethod' | 'noWhitelistTokens' | 'failedFetchGasPrice' | 'chainflipBrokerApiUnavailable' | 'failedToBuildVaultSwapTransaction' | 'failedToOpenBtcPrivateChannel' | 'failedToCloseBtcPrivateChannel' | 'affiliateNotRegistered' | 'failedToCreateDepositChannel' | 'failedToRegisterAccount' | 'failedToRegisterAffiliate' | 'failedToWithdrawAffiliate' | 'noProviderDetailsFound' | 'noTokenListsFound' | 'tokenNotFound' | 'tokenPriceNotFound' | 'tokenPriceUnavailable' | 'tokenPriceFailedToUpdate' | 'legsArrayIsEmpty' | 'failedToFetchQuoteForLeg' | 'noBlockHeaderFound' | 'failedToSimulateSwap' | 'swapHalted' | 'memoTooLongForSourceChain' | 'addressScreeningFailed' | 'missingScreeningConfig' | 'insufficientLiquidity' | 'noSaversFound' | 'noInbounDataFound' | 'noInboundAddressesFound' | 'noTargetAddress' | 'noInboundAddressFoundForChain' | 'noLastBlocksFound' | 'noVersionFound' | 'noConstantsFound' | 'noMimirsFound' | 'noRoutesFound' | 'quoteNotFound' | 'ledgerWrongPayload' | 'failedToFetchTx' | 'failedBuildTransactionDetails' | 'failedToCreateRouteMetadata' | 'txBuildingTimeout' | 'noLegsForRoute' | 'insufficientBalance' | 'insufficientAllowance' | 'unableToBuildTransaction' | 'noRouterAddressFound' | 'noAggregatorAddressFound' | 'noContractInstanceFound' | 'noContractAddressFound' | 'invalidAffiliate' | 'invalidAffiliateName' | 'thornameNotFound' | 'thornameAffiliate' | 'No provider found' | 'providerAssetNotFound' | 'No Record found' | 'Slippage too low' | 'tradingHalted' | 'mayanameNotFound' | 'noWrappedGasAsset' | 'aggregatorAddressNotFound' | 'routerAddressNotFound' | 'dummyAddressNotFound' | 'trackerError' | 'thorchainPoolUnavailable' | 'noTradingPairs' | 'missingState' | 'ledgerSwapNotFound' | 'ledgerSwapNotReadyForTracking' | 'ledgerInvalidParsingMode' | 'errorEstimatingGas' | 'apiKeyInvalid' | 'apiKeyFailedToUpdate' | 'apiKeySignatureExists' | 'apiKeySignatureKeyTypeMismatch' | 'apiKeyExpired' | 'unauthorized' | 'failedToCreateMemo' | 'invalidAddressForChain' | 'invalidAddress' | 'riskyAddress' | 'noRoutesToProcess' | 'sellAssetAmountTooSmall' | 'sellAssetAmountTooLarge' | 'missingPrivateKey' | 'noMemoPriceProtection' | 'nodeMethodNotFound' | 'nodeRpcNotFound' | 'thirdPartyProviderNotFound' | 'quoteUnavailable' | 'targetInstructionNotFound' | 'referrerExist' | 'referrerNotFound' | 'invalidReferrer' | 'quoteLogicError' | 'missingDecimal' | 'noGasInfoInDB' | 'quoteError' | 'valueOverflow' | 'missingChainflipMeta' | 'contractAndMethodRequired' | 'tokenImageError' | 'fileNotFound' | 'fileFormatError' | 'ipError' | 'failedToSaveLedgerSwap' | 'missingValue' | 'missingDBQueryParam' | 'unableEstimateTxTime' | 'affiliateStatsMissingDate' | 'affiliateStatsMissingNextFilter' | 'affiliateStatsNoActions' | 'unsupportedNotificationEvent' | 'unsupportedNotificationChannel' | 'invalidWebhookUrl' | 'webhookDeliveryFailed' | 'serverStateNotFound' | 'apiRequestFailed' | 'apiRateLimit' | 'invalidActionStep' | 'providerIsRequired' | 'rateLimitExceeded' | 'depositChannelNotFound' | 'auditLogInsertFailed' | 'affiliateNameHistoryInsertFailed' | 'invalidRouteId' | 'invalidQuoteId' | 'invalidRoute' | 'quoteExpired' | 'swapQuoteNotFound' | 'swapRouteNotFound' | 'swapTransactionFailed' | 'swapChainflipMetaMissing' | 'swapChainflipChannelFailed' | 'swapTransferTxFailed' | 'chainflipVaultSwapNotSupported' | 'chainflipVaultSwapEncodingFailed' | 'chainflipVaultSwapInvalidChain' | 'chainflipVaultSwapBitcoinCCMNotSupported' | 'chainflipVaultSwapTransactionBuildFailed' | 'zcashInvalidAddress' | 'zcashInsufficientUTXOs' | 'zcashUTXOSelectionFailed' | 'zcashTransactionBuildFailed' | 'zcashShieldedRefundMissing' | 'zcashMemoTooLong' | 'zcashUnifiedAddressUnsupported' | 'zcashShieldedMemoUnavailable' | 'invalidTokenProgram' | 'invalidRequest' | 'pubsubEventNotRegistered' | 'pubsubTopicNotFound' | 'invalidSpender' | 'outputAmountDeviationTooHigh' | 'swapSizeExceeded' | 'v2EndpointNotAllowed' | 'externalServiceFailed' | 'tenantEncryptKeyNotFound' | 'tenantKeyPairEncryptionError' | 'slip24AmountOverflow' | 'slip24InvalidSignature' | 'slip24DigestComputationFailed' | 'invalidTxHashFormat' | 'affiliateNotFound' | 'nearAffiliateProviderAssetNotFound' | 'nearAffiliateDepositAddressFailed' | 'flashnetAffiliateRegistrationFailed' | 'flashnetAffiliateClaimFailed' | 'flashnetAffiliateNotFound' | 'limitOrderUnsupportedChain' | 'limitOrderQuoteNotFound' | 'limitOrderRouteNotFound' | 'limitOrderNotFound' | 'limitOrderInvalidState' | 'limitOrderBuildFailed' | 'limitOrderSubmissionFailed' | 'limitOrderCancelFailed' | 'limitOrderExpirationOutOfBounds' | 'limitOrderUnsupportedFillFlags' | 'limitOrderAmountAmbiguous' | 'limitOrderChainMismatch' | 'limitOrderUnsupportedPair' | 'limitOrderActionUnavailable' | 'limitOrderProviderError'; message?: string; /** * Provider minimum sell amount (human units), when the provider reported one */ minAmount?: string; }>; }; type ExecuteSwapRequest = { /** * The ID of the route to swap */ routeId: string; /** * Override the EXACT_INPUT/FLEX_INPUT mode for this swap. Defaults to the quoteType from the original /v3/quote request when omitted. */ quoteType?: 'EXACT_INPUT' | 'FLEX_INPUT'; /** * Address to send asset from */ sourceAddress: string; /** * Recipient address to send asset to */ destinationAddress: string; /** * Whether to disable balance check */ disableBalanceCheck?: boolean; /** * Whether to disable estimate gas */ disableEstimate?: boolean; /** * Whether to allow smart contract sender */ allowSmartContractSender?: boolean; /** * Whether to allow smart contract receiver */ allowSmartContractReceiver?: boolean; /** * Whether to disable security checks */ disableSecurityChecks?: boolean; /** * Whether to override slippage validation on quote refresh */ overrideSlippage?: boolean; /** * Set to true to skip building a transaction. Used when you build a custom transaction from our response. */ disableBuildTx?: boolean; /** * Set to true to enable max-spend sweep behaviour for UTXO/gas assets (opt-in). */ enableSweep?: boolean; }; type ExecuteSwapResponse = { /** * Asset to sell */ sellAsset: string; /** * Sell amount */ sellAmount: string; /** * Asset to buy */ buyAsset: string; /** * Buy amount */ buyAmount?: string; /** * Buy amount max slippage */ buyAmountMaxSlippage?: string; /** * Expected Buy amount */ expectedBuyAmount?: string; /** * Expected Buy amount max slippage */ expectedBuyAmountMaxSlippage?: string; fees: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; /** * The provider of the previous leg in the route, if any */ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * The provider of the next leg in the route, if any */ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * Route ID */ routeId: string; providers: Array<'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'>; /** * Expiration */ expiration?: string; estimatedTime?: { /** * Time to receive inbound asset in seconds */ inbound?: number; /** * Time to swap assets in seconds */ swap?: number; /** * Time to receive outbound asset in seconds */ outbound?: number; /** * Total time in seconds */ total: number; }; /** * Total slippage in bps */ totalSlippageBps: number; legs: Array<{ provider: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * Asset to sell */ sellAsset: string; /** * Sell amount */ sellAmount: string; /** * Asset to buy */ buyAsset: string; /** * Buy amount */ buyAmount?: string; /** * Buy amount max slippage */ buyAmountMaxSlippage?: string; /** * Expected Buy amount */ expectedBuyAmount?: string; /** * Expected Buy amount max slippage */ expectedBuyAmountMaxSlippage?: string; fees: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; /** * The provider of the previous leg in the route, if any */ previousLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; /** * The provider of the next leg in the route, if any */ nextLegProvider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; warnings: Array<{ code: 'highSlippage' | 'highPriceImpact' | 'noSourceAddressToBuildTransaction' | 'affiliateFeeTooSmallSoRemoved' | 'unableToApplyReferralProgram' | 'insufficientBalance' | 'unableToBuildTransaction' | 'unableToEstimateGas' | 'limitPriceBelowSpot' | 'limitPriceWithinFeeGap'; display: string; tooltip?: string; }>; /** * Source address */ sourceAddress: string; /** * Destination address */ destinationAddress: string; /** * Target address */ targetAddress?: string; /** * Inbound address */ inboundAddress?: string; /** * Shielded ZEC source only: send a 0-value shielded note carrying the memo to this unified address, in the SAME transaction as the value output to inboundAddress */ shieldedMemo?: { /** * Maya's unified address that receives the 0-value shielded memo note */ unifiedAddress: string; /** * Maya's unified incoming viewing key used to decrypt the memo note */ uivk?: string; }; /** * Memo to include in the transaction */ memo?: string; txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND'; txHint?: 'simpleTransfer' | 'transferWithMemo' | 'contractCall'; tx?: { /** * Hex-encoded recipient address (native TRX) or TRC-20 token contract address */ to: string; /** * Hex-encoded sender address */ from?: string; /** * Transfer amount in base units */ value: string; /** * ABI-encoded TRC-20 transfer parameters, or 0x for native TRX */ data: string; /** * Transaction memo to attach on-chain: either a plain-text provider memo (e.g. THORChain) or a 0x-prefixed hex byte payload (e.g. Chainflip vault swap parameters), which must be attached as raw bytes */ memo: string; } | { /** * Address of the recipient */ to: string; /** * Address of the sender */ from?: string; /** * Gas limit */ gas?: string; /** * Gas price */ gasPrice?: string; /** * Value to send */ value: string; /** * Data to send */ data: string; } | { memo: string; accountNumber: number; sequence: number; chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; msgs: Array<{ type: string; value: unknown; } | { typeUrl: string; value: unknown; }>; fee: { amount: Array<{ denom: string; amount: string; }>; gas: string; }; } | { visible?: boolean; txID: string; raw_data: { contract: unknown; ref_block_bytes: string; ref_block_hash: string; expiration: number; fee_limit?: unknown; timestamp: number; data?: unknown; }; raw_data_hex: string; } | Array<{ contractAddress: string; entrypoint: string; calldata: Array; }> | Array<{ /** * Destination address in friendly format */ address: string; /** * Amount in nanotons */ amount: string; /** * Base64 BOC of body cell */ payload?: string; /** * Base64 BOC of state init */ stateInit?: string; /** * Optional @ton/ton SendMode bitmask. Set to 130 (CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS) on sweeps so the wallet sends balance − fees instead of the literal amount. */ sendMode?: number; }> | { domain: { name: string; version: string; chainId: number; verifyingContract: string; }; types: { [key: string]: Array<{ name: string; type: string; }>; }; value: { [key: string]: unknown; }; } | { typedData: { domain: { name: string; version: string; chainId: number; verifyingContract: string; }; primaryType: string; types: { [key: string]: Array<{ name: string; type: string; }>; }; message: { [key: string]: unknown; }; }; action: { type: 'usdSend'; hyperliquidChain: string; signatureChainId: string; destination: string; amount: string; time: number; }; submitTo: string; } | string; meta: { assets?: Array<{ /** * Asset name */ asset: string; /** * Price in USD */ price: number; /** * Asset image */ image: string; }>; tags: Array<'CHEAPEST' | 'FASTEST' | 'RECOMMENDED'>; streamingInterval?: number; maxStreamingQuantity?: number; referrer?: string; /** * The quoteType this route was built for (EXACT_INPUT or FLEX_INPUT). Echoes the request's quoteType so /swap can carry the mode forward. */ quoteType?: 'EXACT_INPUT' | 'FLEX_INPUT'; /** * Price impact */ priceImpact?: number; /** * Approval address for swap */ approvalAddress?: string; affiliate?: string; affiliateFee?: string; txType?: 'PSBT' | 'EVM' | 'COSMOS' | 'SERIALIZED_BASE64' | 'RIPPLE' | 'TRON' | 'NEAR' | 'SUI' | 'CBOR' | 'TON' | 'STARKNET' | 'zcash-unsigned' | 'STELLAR' | 'EIP_712_HYPE_WITHDRAW' | 'EIP_712_HYPE_USD_SEND'; chainflip?: { destinationAddress: string; sellAsset: { chain: string; asset: string; }; buyAsset: { chain: string; asset: string; }; channelMetadata?: { ccmAdditionalData?: string; gasBudget?: string; message?: string; cfParameters?: string; }; affiliateFees?: Array<{ brokerAddress: string; feeBps: number; }>; refundParameters?: { minPrice?: string; refundAddress?: string; retryDuration?: number; maxOraclePriceSlippage?: number; slippageTolerancePercent?: number; livePriceSlippageTolerancePercent?: number; }; dcaParameters?: { chunkInterval?: number; numberOfChunks?: number; }; brokerCommissionBps?: number; maxBoostFeeBps?: number; }; garden?: { destinationAddress: string; sellAsset: string; buyAsset: string; buyAmount: string; sellAmount: string; sourceAddress: string; affiliateFees?: { address: string; asset: string; fee: number; }; slippage: number; }; near?: { destinationAddress: string; sellAsset: string; buyAsset: string; sourceAddress: string; sellAmount: string; affiliateFees?: { nearId: string; feeBps: number; }; slippage: number; }; isFastQuote?: boolean; /** * Indicates if the quote was refreshed */ isRefreshed?: boolean; /** * Indicates if the tx is wrapped */ isWrapped?: boolean; /** * True when the request was treated as a max-spend sweep (sellAmount adjusted for gas/fees). */ isSweep?: boolean; signedTx?: string; signature?: string; /** * Exact byte string that was SHA-256 hashed and ES256-signed (RFC 8785 canonical JSON for object txs, or the raw serialized tx for string txs). Verify `signature` over these literal bytes — no re-serialization needed. */ signedTxString?: string; slip24?: { recipientName: string; nonce: string | null; coinType: number; memos: Array<{ type: 'text'; text: string; } | { type: 'refund'; refund: string; } | { type: 'coinPurchase'; coinPurchase: { coinType: number; amount: string; address: string; }; }>; outputs: Array<{ amount: number; address: string; }>; signature: string; }; }; /** * The unique swap ID for tracking */ swapId: string; /** * Swap creation timestamp (ISO 8601) */ createdAt: string; /** * Creation timestamp of the underlying quote (ISO 8601) */ quoteCreatedAt: string; /** * Optional approval transaction if ERC-20 approval is required before swap */ approvalTx?: { /** * Token contract address */ to: string; /** * User wallet address */ from: string; /** * ETH value (always '0' for approvals) */ value: string; /** * Encoded approval call data */ data: string; /** * Estimated gas limit */ gasLimit?: string; /** * Current gas price */ gasPrice?: string; }; }; type GetProvidersData = { body?: never; path?: never; query?: never; url: '/providers'; }; type GetProvidersErrors = { /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type GetProvidersError = GetProvidersErrors[keyof GetProvidersErrors]; type GetProvidersResponses = { /** * Default Response */ 200: GetProvidersResponse; }; type GetProvidersResponse2 = GetProvidersResponses[keyof GetProvidersResponses]; type GetTokensData = { body?: never; path?: never; query?: { /** * Provider name, or "all" to combine all providers */ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3' | 'all'; }; url: '/tokens'; }; type GetTokensErrors = { /** * Default Response */ 400: { message: string; error: string; data?: unknown; }; /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type GetTokensError = GetTokensErrors[keyof GetTokensErrors]; type GetTokensResponses = { /** * Default Response */ 200: GetTokensResponse; }; type GetTokensResponse2 = GetTokensResponses[keyof GetTokensResponses]; type SearchTokensData = { body?: never; path?: never; query: { /** * Free-text token search query */ query: string; /** * Restrict results to a chain */ chain?: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; /** * Restrict search to a provider token list */ provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; limit?: number; page?: number; }; url: '/tokens/search'; }; type SearchTokensErrors = { /** * Default Response */ 400: { message: string; error: string; data?: unknown; }; /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type SearchTokensError = SearchTokensErrors[keyof SearchTokensErrors]; type SearchTokensResponses = { /** * Default Response */ 200: SearchTokensResponse; }; type SearchTokensResponse2 = SearchTokensResponses[keyof SearchTokensResponses]; type GetSwapToAssetsData = { body?: never; path?: never; query: { /** * Asset to swap from */ sellAsset: string; }; url: '/swapTo'; }; type GetSwapToAssetsErrors = { /** * Default Response */ 400: { message: string; error: string; data?: unknown; }; /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type GetSwapToAssetsError = GetSwapToAssetsErrors[keyof GetSwapToAssetsErrors]; type GetSwapToAssetsResponses = { /** * Default Response */ 200: GetSwapToAssetsResponse; }; type GetSwapToAssetsResponse2 = GetSwapToAssetsResponses[keyof GetSwapToAssetsResponses]; type GetSwapFromAssetsData = { body?: never; path?: never; query: { /** * Asset to swap to (target asset) */ buyAsset: string; }; url: '/swapFrom'; }; type GetSwapFromAssetsErrors = { /** * Default Response */ 400: { message: string; error: string; data?: unknown; }; /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type GetSwapFromAssetsError = GetSwapFromAssetsErrors[keyof GetSwapFromAssetsErrors]; type GetSwapFromAssetsResponses = { /** * Default Response */ 200: GetSwapFromAssetsResponse; }; type GetSwapFromAssetsResponse2 = GetSwapFromAssetsResponses[keyof GetSwapFromAssetsResponses]; type CreateBrokerChannelData = { body: CreateBrokerChannelRequest; path?: never; query?: never; url: '/chainflip/broker/channel'; }; type CreateBrokerChannelResponses = { /** * Default Response */ 200: CreateBrokerChannelResponse; }; type CreateBrokerChannelResponse2 = CreateBrokerChannelResponses[keyof CreateBrokerChannelResponses]; type TrackTransactionData = { body?: TrackTransactionRequest; path?: never; query?: { forceUpdate?: string; }; url: '/track'; }; type TrackTransactionErrors = { /** * Default Response */ 400: { message: string; error: string; data?: unknown; }; /** * Default Response */ 401: { message: string; error: string; data?: unknown; }; /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type TrackTransactionError = TrackTransactionErrors[keyof TrackTransactionErrors]; type TrackTransactionResponses = { /** * Default Response */ 200: TrackTransactionResponse; /** * Default Response */ 202: { chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; hash: string; block: number; type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate'; status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed'; trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error'; fromAsset: string; fromAmount: string; fromAddress: string; toAsset: string; toAmount: string; toAddress: string; finalAsset?: { chain: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; symbol: string; ticker: string; decimal?: number; address?: string; isGasAsset: boolean; isSynthetic: boolean; tax?: { buy: number; sell: number; }; }; finalAddress?: string; finalisedAt: number; transient?: { estimatedTimeToComplete: number; currentLegIndex?: number; estimates?: { inboundObservation: number; inboundConfirmation: number; streamingSwap: number; outboundDelay: number; outboundObservation: number; currentStage: string; }; providerDetails?: { streamingDetails?: { quantity?: number; count?: number; interval?: number; subSwapsMap?: Array; }; depositChannelId?: string; depositAddress?: string; }; }; meta?: { broadcastedAt?: number; wallet?: string; quoteId?: string; explorerUrl?: string; providerExplorerUrl?: string; affiliate?: string; fees?: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'; providerOrderId?: string; images?: { from?: string; to?: string; provider?: string; chain?: string; }; affiliateFees?: Array<{ affiliate: string; bps: string; isReferrer: boolean; }>; failReason?: string; failTargetAddress?: string; }; payload?: { evmCalldata?: string; evmValue?: string; logs?: unknown; memo?: string; spender?: string; manifest?: unknown; intentHash?: string; thorname?: string; decodedPayload?: unknown; }; legs: Array<{ chainId: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; hash: string; block: number; type: 'approve' | 'claim' | 'deposit' | 'lending' | 'lp_action' | 'native_contract_call' | 'native_send' | 'stake' | 'unstake' | 'streaming_swap' | 'swap' | 'thorname_action' | 'token_contract_call' | 'token_transfer' | 'unknown' | 'donate'; status: 'unknown' | 'not_started' | 'pending' | 'swapping' | 'completed' | 'refunded' | 'failed'; trackingStatus?: 'not_started' | 'starting' | 'broadcasted' | 'mempool' | 'inbound' | 'outbound' | 'swapping' | 'completed' | 'refunded' | 'partially_refunded' | 'dropped' | 'reverted' | 'replaced' | 'retries_exceeded' | 'parsing_error'; fromAsset: string; fromAmount: string; fromAddress: string; toAsset: string; toAmount: string; toAddress: string; finalAsset?: { chain: 'ADI' | 'ALEO' | 'APT' | 'ARB' | 'AURORA' | 'AVAX' | 'BASE' | 'BERA' | 'BSC' | 'BTC' | 'BCH' | 'BOTANIX' | 'ADA' | 'FLIP' | 'CORE' | 'CORN' | 'GAIA' | 'CRO' | 'DASH' | 'DOGE' | 'ETH' | 'GNO' | 'HARBOR' | 'HYPEREVM' | 'HYPE' | 'KUJI' | 'LTC' | 'LINEA' | 'MAYA' | 'MEGAETH' | 'MONAD' | 'NEAR' | 'NOBLE' | 'OP' | 'XPL' | 'DOT' | 'POL' | 'XRD' | 'XRP' | 'HOOD' | 'SOL' | 'SONIC' | 'SPARK' | 'XLM' | 'STRK' | 'SUI' | 'THOR' | 'TON' | 'TRON' | 'UNI' | 'XLAYER' | 'ZEC'; symbol: string; ticker: string; decimal?: number; address?: string; isGasAsset: boolean; isSynthetic: boolean; tax?: { buy: number; sell: number; }; }; finalAddress?: string; finalisedAt: number; transient?: { estimatedTimeToComplete: number; currentLegIndex?: number; estimates?: { inboundObservation: number; inboundConfirmation: number; streamingSwap: number; outboundDelay: number; outboundObservation: number; currentStage: string; }; providerDetails?: { streamingDetails?: { quantity?: number; count?: number; interval?: number; subSwapsMap?: Array; }; depositChannelId?: string; depositAddress?: string; }; }; meta?: { broadcastedAt?: number; wallet?: string; quoteId?: string; explorerUrl?: string; providerExplorerUrl?: string; affiliate?: string; fees?: Array<{ type: 'liquidity' | 'network' | 'inbound' | 'outbound' | 'affiliate' | 'service' | 'tax' | 'priority'; amount: string; amountBps?: number; asset: string; chain: string; protocol: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; }>; provider?: 'CHAINFLIP' | 'CHAINFLIP_STREAMING' | 'MAYACHAIN' | 'MAYACHAIN_STREAMING' | 'ONEINCH' | 'PANCAKESWAP' | 'SUSHISWAP_V2' | 'THORCHAIN' | 'THORCHAIN_STREAMING' | 'TRADERJOE_V2' | 'UNISWAP_V2' | 'UNISWAP_V3' | 'JUPITER' | 'OKX' | 'NEAR' | 'GARDEN' | 'HARBOR' | 'FLASHNET' | 'MAYAN' | 'PANGOLIN_V1' | 'CAVIAR_V1' | 'OPENOCEAN_V2' | 'OCISWAP_V1' | 'CAMELOT_V3'; providerAction?: 'swap' | 'aggregation' | 'addLiquidity' | 'withdrawLiquidity' | 'addSavers' | 'withdrawSavers' | 'borrow' | 'repay' | 'name' | 'donate' | 'claim' | 'stake' | 'unstake' | 'createOrder' | 'cancelOrder'; providerOrderId?: string; images?: { from?: string; to?: string; provider?: string; chain?: string; }; affiliateFees?: Array<{ affiliate: string; bps: string; isReferrer: boolean; }>; failReason?: string; failTargetAddress?: string; }; payload?: { evmCalldata?: string; evmValue?: string; logs?: unknown; memo?: string; spender?: string; manifest?: unknown; intentHash?: string; thorname?: string; decodedPayload?: unknown; }; }>; }; }; type TrackTransactionResponse2 = TrackTransactionResponses[keyof TrackTransactionResponses]; type ScreenAddressData = { body: ScreenAddressRequest; path?: never; query?: never; url: '/screen'; }; type ScreenAddressErrors = { /** * Default Response */ 400: { message: string; }; }; type ScreenAddressError = ScreenAddressErrors[keyof ScreenAddressErrors]; type ScreenAddressResponses = { /** * Default Response */ 200: ScreenAddressResponse; }; type ScreenAddressResponse2 = ScreenAddressResponses[keyof ScreenAddressResponses]; type GetGasPricesData = { body?: never; path?: never; query?: { /** * Chain id, if omitted return gas for all chains */ chainId?: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; /** * Time frame to get gas history */ timeFrame?: '1h' | '1d' | '1w' | '1m'; }; url: '/gas'; }; type GetGasPricesResponses = { /** * Default Response */ 200: GetGasPricesResponse; }; type GetGasPricesResponse2 = GetGasPricesResponses[keyof GetGasPricesResponses]; type GetGasHistoryData = { body?: never; path?: never; query?: { /** * Chain id, if omitted return gas for all chains */ chainId?: '36900' | 'aleo' | 'aptos' | '42161' | '1313161554' | '43114' | '8453' | '80094' | '56' | 'bitcoin' | 'bitcoincash' | '3637' | 'cardano' | 'chainflip' | '1116' | '21000000' | 'cosmoshub-4' | '25' | 'dash' | 'dogecoin' | '1' | '100' | 'harbor-1' | 'harbor-stagenet-1' | '999' | 'hype' | 'kaiyo-1' | 'litecoin' | '59144' | 'mayachain-mainnet-v1' | 'mayachain-stagenet-v1' | '4326' | '143' | 'near' | 'noble-1' | '10' | '9745' | 'polkadot' | '137' | 'radix-mainnet' | 'ripple' | '4663' | 'solana' | '146' | 'spark' | 'stellar' | '0x534e5f4d41494e' | 'sui' | 'thorchain-1' | 'thorchain-stagenet-v2' | 'ton' | '728126428' | '130' | '196' | 'zcash'; /** * Time frame to get gas history */ timeFrame?: '1h' | '1d' | '1w' | '1m'; }; url: '/gas/history'; }; type GetGasHistoryResponses = { /** * Default Response */ 200: GetGasHistoryResponse; }; type GetGasHistoryResponse2 = GetGasHistoryResponses[keyof GetGasHistoryResponses]; type GetCachedPriceData = { body: GetCachedPriceRequest; path?: never; query?: never; url: '/price'; }; type GetCachedPriceResponses = { /** * Default Response */ 200: GetCachedPriceResponse; }; type GetCachedPriceResponse2 = GetCachedPriceResponses[keyof GetCachedPriceResponses]; type GetQuoteData = { body: GetQuoteRequest; path?: never; query?: never; url: '/v3/quote'; }; type GetQuoteErrors = { /** * Default Response */ 400: { message: string; error: string; data?: unknown; }; /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type GetQuoteError = GetQuoteErrors[keyof GetQuoteErrors]; type GetQuoteResponses = { /** * Default Response */ 200: GetQuoteResponse; }; type GetQuoteResponse2 = GetQuoteResponses[keyof GetQuoteResponses]; type ExecuteSwapData = { body: ExecuteSwapRequest; path?: never; query?: never; url: '/v3/swap'; }; type ExecuteSwapErrors = { /** * Default Response */ 400: { message: string; error: string; data?: unknown; }; /** * Default Response */ 404: { message: string; error: string; data?: unknown; }; /** * Default Response */ 500: { message: string; error: string; data?: unknown; }; }; type ExecuteSwapError = ExecuteSwapErrors[keyof ExecuteSwapErrors]; type ExecuteSwapResponses = { /** * Default Response */ 200: ExecuteSwapResponse; }; type ExecuteSwapResponse2 = ExecuteSwapResponses[keyof ExecuteSwapResponses]; type Options = Options$1 & { /** * You can provide a client instance returned by `createClient()` instead of * individual options. This might be also useful if you want to implement a * custom client. */ client?: Client; /** * You can pass arbitrary values through the `meta` object. This can be * used to access values that aren't defined as part of the SDK function. */ meta?: keyof ClientMeta extends never ? Record : ClientMeta; }; declare const getProviders: (options?: Options) => RequestResult; declare const getTokens: (options?: Options) => RequestResult; declare const searchTokens: (options: Options) => RequestResult; declare const getSwapToAssets: (options: Options) => RequestResult; declare const getSwapFromAssets: (options: Options) => RequestResult; declare const createBrokerChannel: (options: Options) => RequestResult; declare const trackTransaction: (options?: Options) => RequestResult; declare const screenAddress: (options: Options) => RequestResult; declare const getGasPrices: (options?: Options) => RequestResult; declare const getGasHistory: (options?: Options) => RequestResult; declare const getCachedPrice: (options: Options) => RequestResult; declare const getQuote: (options: Options) => RequestResult; declare const executeSwap: (options: Options) => RequestResult; declare const client: Client; interface SwapKitClientOptions { apiKey: string; baseUrl?: string; } declare function configureSwapKit(options: SwapKitClientOptions): void; declare class SwapKitService { static getProviders: (options?: Options) => RequestResult; static getTokens: (options?: Options) => RequestResult; static searchTokens: (options: Options) => RequestResult; static getSwapTo: (options: Options) => RequestResult; static getSwapFrom: (options: Options) => RequestResult; static getQuote: (options: Options) => RequestResult; static getSwap: (options: Options) => RequestResult; static trackTransaction: (options?: Options) => RequestResult; static screenAddress: (options: Options) => RequestResult; static getGasPrices: (options?: Options) => RequestResult; static getGasHistory: (options?: Options) => RequestResult; static getCachedPrice: (options: Options) => RequestResult; static createBrokerChannel: (options: Options) => RequestResult; } /** @deprecated Use `SwapKitService` instead */ declare const TokenlistService: { readonly getProviders: (options?: Options) => RequestResult; readonly getTokens: (options?: Options) => RequestResult; readonly searchTokens: (options: Options) => RequestResult; readonly getSwapTo: (options: Options) => RequestResult; readonly getSwapFrom: (options: Options) => RequestResult; }; /** @deprecated Use `SwapKitService` instead */ declare const QuoteService: { readonly getQuote: (options: Options) => RequestResult; }; /** @deprecated Use `SwapKitService` instead */ declare const SwapService: { readonly getSwap: (options: Options) => RequestResult; }; /** @deprecated Use `SwapKitService` instead */ declare const TrackService: { readonly trackTransaction: (options?: Options) => RequestResult; }; /** @deprecated Use `SwapKitService` instead */ declare const ScreenService: { readonly screenAddress: (options: Options) => RequestResult; }; /** @deprecated Use `SwapKitService` instead */ declare const GasService: { readonly getGasPrices: (options?: Options) => RequestResult; readonly getGasHistory: (options?: Options) => RequestResult; }; /** @deprecated Use `SwapKitService` instead */ declare const PriceService: { readonly getCachedPrice: (options: Options) => RequestResult; }; /** @deprecated Use `SwapKitService` instead */ declare const ChainflipService: { readonly createBrokerChannel: (options: Options) => RequestResult; }; export { ChainflipService, type ClientOptions, type CreateBrokerChannelData, type CreateBrokerChannelRequest, type CreateBrokerChannelResponse, type CreateBrokerChannelResponse2, type CreateBrokerChannelResponses, type ExecuteSwapData, type ExecuteSwapError, type ExecuteSwapErrors, type ExecuteSwapRequest, type ExecuteSwapResponse, type ExecuteSwapResponse2, type ExecuteSwapResponses, GasService, type GetAssetProvidersResponse, type GetCachedPriceData, type GetCachedPriceRequest, type GetCachedPriceResponse, type GetCachedPriceResponse2, type GetCachedPriceResponses, type GetGasHistoryData, type GetGasHistoryResponse, type GetGasHistoryResponse2, type GetGasHistoryResponses, type GetGasPricesData, type GetGasPricesResponse, type GetGasPricesResponse2, type GetGasPricesResponses, type GetProviderIdentifiersMappingResponse, type GetProvidersData, type GetProvidersError, type GetProvidersErrors, type GetProvidersResponse, type GetProvidersResponse2, type GetProvidersResponses, type GetProvidersStatusResponse, type GetQuoteData, type GetQuoteError, type GetQuoteErrors, type GetQuoteRequest, type GetQuoteResponse, type GetQuoteResponse2, type GetQuoteResponses, type GetSwapFromAssetsData, type GetSwapFromAssetsError, type GetSwapFromAssetsErrors, type GetSwapFromAssetsResponse, type GetSwapFromAssetsResponse2, type GetSwapFromAssetsResponses, type GetSwapToAssetsData, type GetSwapToAssetsError, type GetSwapToAssetsErrors, type GetSwapToAssetsResponse, type GetSwapToAssetsResponse2, type GetSwapToAssetsResponses, type GetTokensData, type GetTokensError, type GetTokensErrors, type GetTokensResponse, type GetTokensResponse2, type GetTokensResponses, type GetWhitelistPoolsResponse, type GetWhitelistTokensResponse, type InsertTrackedTransactionRequest, type InsertTrackedTransactionResponse, type Options, PriceService, QuoteService, type RegisterChainflipAffiliateRequest, type RegisterChainflipAffiliateResponse, type ScreenAddressData, type ScreenAddressError, type ScreenAddressErrors, type ScreenAddressRequest, type ScreenAddressResponse, type ScreenAddressResponse2, type ScreenAddressResponses, ScreenService, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponse2, type SearchTokensResponses, type SwapKitClientOptions, SwapKitService, SwapService, TokenlistService, TrackService, type TrackTransactionData, type TrackTransactionError, type TrackTransactionErrors, type TrackTransactionRequest, type TrackTransactionResponse, type TrackTransactionResponse2, type TrackTransactionResponses, type WithdrawChainflipAffiliateFeesRequest, type WithdrawChainflipAffiliateFeesResponse, client, configureSwapKit, createBrokerChannel, executeSwap, getCachedPrice, getGasHistory, getGasPrices, getProviders, getQuote, getSwapFromAssets, getSwapToAssets, getTokens, screenAddress, searchTokens, trackTransaction };