GET /api/v2/tokens returns the starter list. Add address to look up a specific token or wallet to read balances for listed assets.
Load the starter list
Save this astokens.mjs. It works with Node.js 20 or later and uses no SDK or API key.
tokens in your picker. Use the contract address as the identifier; two tokens can share a symbol. Filter the starter list locally for text search. This endpoint does not accept a free-text search query or list every token on the chain.
Look up an address
Using the same module, callloadTokens when the user pastes a complete contract address:
verified means the token belongs to Route’s reviewed starter list. Metadata lookup and list inclusion do not prove that a token is safe or can be sold.
Add wallet balances
Pass the connected wallet’s public address aswallet. Add address if you also want to check one imported token. Each returned token has a balance string in base units.
The response includes blockNumber, coverage and failed. Coverage is limited to listed assets plus the requested token. If failed is greater than zero, label the result as incomplete. An absent token is not proof that the wallet owns none of it.
Use each token’s decimals to format amounts, for example with viem’s formatUnits. Keep raw balances as strings or bigint; converting them to a JavaScript number can lose precision.