GET /tokens

GET /tokens | Auth: Required

List available tokens, optionally filtered by chain or symbol. Returns token contract addresses and decimals needed for building swap transactions.

Request

Parameters

Query string parameters:

Field
Type
Required
Description

chain

string

No

Filter by chain key (e.g., "base", "solana", "ethereum"). Use values from GET /chains.

search

string

No

Filter by token symbol substring. Case-insensitive.

Example

GET /tokens?chain=base&search=USD

Response

Status: 200 OK

Fields

Field
Type
Description

success

boolean

Always true.

chain

string

The chain key that was queried. Present when chain parameter is provided.

chain_id

number

The numeric chain ID. Present when chain parameter is provided.

tokens

array

List of matching tokens.

tokens[].symbol

string

Token symbol (e.g., "USDC").

tokens[].address

string

Contract address on the specified chain. Native tokens use the zero address.

tokens[].decimals

number

Number of decimal places for the token.

Example

Errors

Status
Error
Description

400

"Unknown chain 'xyz'"

The provided chain key does not match any supported chain. Use GET /chains to see valid values.

401

"Invalid or missing API key"

The API key is missing, malformed, or revoked.

Code Examples

curl

Python

TypeScript

Last updated