Skip to content
Docs

Tokens

Filter and search

chainId, q, verification, cursor and limit control the token list.

Overview

Combine query params on GET /v1/tokens to build pickers and search boxes.

By chain

Pass chainId with a valid Gray3 chain ID. Unknown ids return invalid_argument.

Request
curl -sS "https://ledger.gray3.io/v1/tokens?chainId=solana&limit=50" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_sk_your_secret"

q matches the start of the symbol or name (us finds USDC and USDT), or an exact token address. Scope with chainId when the UI shows one network.

Request
curl -sS "https://ledger.gray3.io/v1/tokens?chainId=ethereum&q=usd" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_sk_your_secret"

By verification

Request
curl -sS "https://ledger.gray3.io/v1/tokens?chainId=bnb&verification=verified,unverified" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_sk_your_secret"

Use verification=all to include abandoned and flagged tokens, for example in an admin or audit view.

Paging

Results are ordered by symbol. Keep the same filters and pass cursor=<nextCursor> until no nextCursor comes back. Cursors are opaque; do not build them yourself.

Native assets

The registry lists contract tokens. Native coins (ETH, SOL, …) come from the chain list and use address: "native" where a token id is expected.