Skip to main content
GET
/
v1
/
tokens
/
get_all_tokens_from_db
curl --request GET \
  --url 'https://mach-prod-536329393577.asia-northeast1.run.app/v1/tokens/get_all_tokens_from_db?chain=arbitrum'
[
  {
    "chain": "arbitrum",
    "symbol": "USDC",
    "address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
    "decimals": 6,
    "usd_est": 1,
    "is_wrapped": false,
    "cex_tickers": {
      "binance": "USDC"
    },
    "name": "USD Coin"
  },
  {
    "chain": "arbitrum",
    "symbol": "WETH",
    "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
    "decimals": 18,
    "usd_est": 3500,
    "is_wrapped": true,
    "cex_tickers": {
      "binance": "ETH"
    },
    "name": "Wrapped Ether"
  }
]
This endpoint retrieves information about all tokens supported by Mach Exchange. If a chain parameter is provided, it will return only tokens for that specific blockchain.

Query Parameters

chain
string
(Optional) Blockchain chain identifier (e.g., “ethereum”, “arbitrum”)

Response

An array of token objects, each containing:
chain
string
Blockchain chain identifier
symbol
string
Token symbol (e.g., “USDC”, “WETH”)
address
string
Token contract address
decimals
integer
Token decimal places
usd_est
number
Estimated USD value of 1 token unit (can be null)
is_wrapped
boolean
Whether the token is a wrapped token
cex_tickers
object
Centralized exchange ticker mappings
name
string
Token name
curl --request GET \
  --url 'https://mach-prod-536329393577.asia-northeast1.run.app/v1/tokens/get_all_tokens_from_db?chain=arbitrum'
[
  {
    "chain": "arbitrum",
    "symbol": "USDC",
    "address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
    "decimals": 6,
    "usd_est": 1,
    "is_wrapped": false,
    "cex_tickers": {
      "binance": "USDC"
    },
    "name": "USD Coin"
  },
  {
    "chain": "arbitrum",
    "symbol": "WETH",
    "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
    "decimals": 18,
    "usd_est": 3500,
    "is_wrapped": true,
    "cex_tickers": {
      "binance": "ETH"
    },
    "name": "Wrapped Ether"
  }
]

Status Codes

Status CodeDescription
200Success - Token list returned successfully
422Validation Error - Invalid chain parameter
500Internal Server Error - Something went wrong on the server