getTokens
function retrieves a list of tokens on Base by searching for the name, symbol, or address of a token.
Before using them, make sure to obtain a Client API Key from Coinbase Developer Platform.
Returns
Promise<GetTokensResponse>
Parameters
GetTokensOptions
Types
Query Parameters
Maximum number of tokens to return
Substring to filter token names or symbols
Response
200 - application/json
Successful response – Array of token objects
Token name (e.g., "ETH")
Contract address of the token
Token symbol (e.g., "ETH")
Number of decimals for the token
URL to the token’s image
Chain ID where the token resides