get https://api.solana.fm/v1/tokens/
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 addressdecimals:
<integer>, the number of decimal places for the tokenfreezeAuthority:
<String>, the freeze authority account hashmintAuthority:
<String>, the mint authority account hashtokenType:
<String>, the token type (e.g. Fungible, Legacy, NonFungible)tokenList:
<object>, the token data retrieved from the legacy token listname:
<String>, token namesymbol:
<String>, token symbolimage:
<String>, image url link to the logo of the tokenextensions:
<String | null>, the token extensionschainId:
<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 codemessage:
<String>, An error message to indicate which part of the query went wrongstatus:
<String>, The response status following the error code- 400 = Bad Request (client side)
- 500 = Internal Server Error (server side)