GetChains
List all supported networks. Endpoint:POST /GetChains
No request parameters required.
Response fields
| Field | Description |
|---|---|
chains | Array of supported network objects |
chains[].chainId | Numeric chain ID |
chains[].name | Human-readable network name |
Example
GetTokenList
List supported tokens on a specific network. Endpoint:POST /GetTokenList
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
chainId | number | Yes | The network to list tokens for |
Response fields
| Field | Description |
|---|---|
tokens | Array of token objects on the specified chain |
tokens[].address | Token contract address |
tokens[].symbol | Token symbol (e.g. USDC) |
tokens[].decimals | Token decimal precision |
Example
GetExactInputRoutes
Get all available destination options for a given source token and amount. Use this to show customers what they can receive given what they have. Endpoint:POST /GetExactInputRoutes
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
originChainId | number | Yes | Source network chain ID |
originTokenAddress | string | Yes | Source token contract address |
originTokenAmount | string | Yes | Amount to send, in the token’s smallest unit |
Example
GetExactOutputRoutes
Get all available source options for a desired destination token and amount. Use this when the customer specifies how much they want to receive. Endpoint:POST /GetExactOutputRoutes
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
destinationChainId | number | Yes | Destination network chain ID |
destinationTokenAddress | string | Yes | Destination token contract address |
destinationTokenAmount | string | Yes | Desired receive amount, in the token’s smallest unit |
Example
GetTokenPrices
Get current USD prices for one or more tokens. Endpoint:POST /GetTokenPrices
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
tokenAddresses | string[] | Yes | Array of token contract addresses to price |
Example
GetExchangeRate
Get a fiat-to-fiat or fiat-to-crypto exchange rate for display and quoting purposes. Endpoint:POST /GetExchangeRate
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
fromCurrency | string | Yes | Source currency code (ISO 4217, e.g. USD) |
toCurrency | string | Yes | Target currency code (ISO 4217, e.g. EUR) |
amount | number | Yes | Amount in the source currency |
Example
GetFiatCurrencyList
List all fiat currencies supported for on-ramp and off-ramp funding. Endpoint:POST /GetFiatCurrencyList
No request parameters required.