Get the metadata of a specified token.
curl --request GET \ --url https://api.chainbase.online/v1/token/metadata \ --header 'x-api-key: <x-api-key>'
{ "code": 0, "message": "ok", "data": { "contract_address": "<string>", "decimals": 123, "name": "<string>", "symbol": "<string>", "total_supply": "<string>", "logos": [ { "uri": "<string>", "width": 123, "height": 123 } ], "urls": [ { "name": "<string>", "url": "<string>" } ], "current_usd_price": 123 } }
chain network id, see list of details
The address of the token contract
Show child attributes
ERC-20 contract address.
The number of decimals the token uses.
The name of the ERC-20 token.
The symbol of the ERC-20 token.
The total supply of the ERC-20 token.
List of logo images for the ERC-20 token.
URI for the logo image.
The logo image's approximate width in pixels.
The logo image's approximate height in pixels.
List of urls for the ERC-20 token.
The name of the link.
The URL of the link.
The current price of the ERC-20 token in USD.