Token Info V1

This endpoint returns you information of a token by the given token hash

🚧

This endpoint is still in the Beta stage.

📘

This endpoint only returns you a list of token data that is retrieved from both on and off chain

Parameters

  • hash- the token hash to query for

Results

Valid Response

<object>- a JSON object containing the following fields:

  • mint:<String>, the token mint address
  • decimals:<integer>, the number of decimal places for the token
  • freezeAuthority:<String>, the freeze authority account hash
  • mintAuthority:<String>, the mint authority account hash
  • tokenType: <String>, the token type (e.g. Fungible, Legacy, NonFungible)
  • tokenList:<object>, the token data retrieved from the legacy token list
    • name:<String>, token name
    • symbol:<String>, token symbol
    • image:<String>, image url link to the logo of the token
    • extensions:<String | null>, the token extensions
    • chainId:<integer>, the chain id for this token

Example of a valid response:

{
  "mint": "BaconSBRjNckjeQCi6E2Ndg8wSmAwPgmfmZnF6ZmyFhz",
  "decimals": 6,
  "freezeAuthority": "7vxDmRAWmK16x8szwtkQQXSV7hvvwm6jVsuHqceFv4JE",
  "mintAuthority": "7vxDmRAWmK16x8szwtkQQXSV7hvvwm6jVsuHqceFv4JE",
  "tokenType": "Legacy",
  "tokenList": {
    "name": "Bacon SBR (sunSBR Token of Appreciation)",
    "symbol": "baconSBR",
    "image": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BaconSBRjNckjeQCi6E2Ndg8wSmAwPgmfmZnF6ZmyFhz/logo.svg",
    "extensions": null,
    "chainId": 101
  }
}

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!