Skip to main content
POST
/
api
/
getallcoinsbychain
Get All Coins by Chain
curl --request POST \
  --url https://quote.rapidx.app/api/getallcoinsbychain \
  --header 'Content-Type: application/json' \
  --data '{
  "chainId": 123,
  "chainName": "<string>",
  "lifiName": "<string>",
  "rangoName": "<string>",
  "owltoName": "<string>",
  "logoURI": "<string>",
  "rpcUrl": [
    "<string>"
  ],
  "apiProvider": 123
}'
{
  "success": true,
  "message": "<string>",
  "data": [
    {
      "address": "<string>",
      "chainId": 123,
      "decimal": 123,
      "logoURI": "<string>",
      "name": "<string>",
      "symbol": "<string>",
      "price": 123,
      "tokenIsNative": true,
      "tokenIsStable": true,
      "amount": "<string>",
      "amountIne": "<string>",
      "amountInUsd": "<string>"
    }
  ],
  "timestamp": "2023-11-07T05:31:56Z"
}
This endpoint returns all available coins/tokens for a specific blockchain network. It’s essential for discovering which tokens are available for trading or bridging on a particular chain.

Request Body

The API requires the following parameters:
  • chainId (required): Blockchain chain ID (e.g., 1 for Ethereum)
  • chainName (required): Blockchain network name (e.g., “Ethereum”)
  • apiProvider (required): API provider identifier
  • lifiName (optional): LiFi protocol name for the chain
  • rangoName (optional): Rango protocol name for the chain
  • owltoName (optional): Owlto protocol name for the chain
  • logoURI (optional): Chain logo URI
  • rpcUrl (optional): Array of RPC endpoint URLs

Example Request

{
  "chainId": 1,
  "chainName": "Ethereum",
  "lifiName": "eth",
  "rangoName": "ETH",
  "owltoName": "EthereumMainnet",
  "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg",
  "rpcUrl": ["https://eth.llamarpc.com"],
  "apiProvider": 5
}

Response

The API returns an array of available tokens with detailed information including:
  • address: Token contract address
  • chainId: Blockchain chain ID
  • decimal: Token decimal places
  • logoURI: Token logo URL
  • name: Token name
  • symbol: Token symbol
  • price: Current token price in USD
  • tokenIsNative: Whether the token is native to the blockchain
  • tokenIsStable: Whether the token is a stablecoin

Example Response

{
  "success": true,
  "message": "success",
  "data": [
    {
      "address": "0x0000000000000000000000000000000000000000",
      "chainId": 1,
      "decimal": 18,
      "logoURI": "https://wallet-asset.matic.network/img/tokens/eth.svg",
      "name": "Ethereum",
      "symbol": "ETH",
      "price": 2850.75,
      "tokenIsNative": true,
      "tokenIsStable": false
    },
    {
      "address": "0xA0b86a33E6441e6aBd0dd42c4CAA12A42F31DcC1",
      "chainId": 1,
      "decimal": 6,
      "logoURI": "https://wallet-asset.matic.network/img/tokens/usdc.svg",
      "name": "USD Coin",
      "symbol": "USDC",
      "price": 1.00,
      "tokenIsNative": false,
      "tokenIsStable": true
    }
  ],
  "timestamp": "2025-09-16T00:00:00.000Z"
}

Use Cases

  • Populate token lists for swap interfaces
  • Display available tokens for a specific chain
  • Get token metadata including prices and logos
  • Filter tokens by type (native, stablecoin, etc.)
  • Build multi-chain token discovery features

Body

application/json

Chain request parameters

chainId
integer
required

Blockchain chain ID

chainName
string
required

Blockchain network name

apiProvider
integer
required

API provider identifier

lifiName
string

LiFi protocol name for the chain

rangoName
string

Rango protocol name for the chain

owltoName
string

Owlto protocol name for the chain

logoURI
string

Chain logo URI

rpcUrl
string[]

RPC endpoint URLs for the chain

Response

Successful response with all coins for the chain

success
boolean

Whether the request was successful

message
string

Response message

data
object[]

List of available coins/tokens for the chain

timestamp
string<date-time>

Response timestamp

I