Get Multiple Tokens

This endpoint returns allows you to batch retrieve tokens based on a list of provided token hashes

Parameters

  • tokenHashes- a list of token hashes to query for
  • hydration - a hydration object with the following field:
    • accountHash- a boolean field to indicate on whether account data should be populated

Results

Valid Response

[<object>]- a list of JSON objects containing the following fields:

  • tokenHash:<String>, the token hash
  • data:<object>, the token data object that contains the following fields:
{
  "status": "Success",
  "message": "Retrieved tokens' info",
  "result": [
    {
      "tokenHash": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "data": {
        "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "tokenName": "USD Coin",
        "symbol": "USDC",
        "decimals": 6,
        "description": "",
        "logo": "https://s3.coinmarketcap.com/static-gravity/image/5a8229787b5e4c809b5914eef709b59a.png",
        "tags": [
          "stablecoin",
          "saber-mkt-usd"
        ],
        "verified": "true",
        "network": [
          "mainnet"
        ],
        "metadataToken": ""
      }
    }
  ]
}

Invalid Response

<object> - a JSON object containing the following fields if the requested account doesn't exist

  • code:<integer>, The error code
  • message:<String>, An error message to indicate which part of the query went wrong
  • status:<String>, The response status following the error code
    • 400 = Bad Request (client side)
    • 500 = Internal Server Error (server side)
Language
Click Try It! to start a request and see the response here!