πŸ†•watch_getTokenMetadata

This endpoint returns all the data about the token

Parameters

  1. contractaddress: DATA, 20 Bytes - smart contract address

Returns

Object - An object with the following fields:

  • contractAddress: DATA, 20 Bytes - smart contract address for which the information was requested

  • blockchain: the name of Blockchain

  • tokenName: Full token name

  • tokenSymbol: Ticker

  • tokenDecimals: Π’umber of decimal points

  • lastUpdate : last request update date

Request example

curl --location --request POST 'https://ethereum.api.watchdata.io/node/jsonrpc?api_key=your_api_key' \
--header 'x-api-key: your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc":"2.0",
    "method":"watch_getTokenMetadata",
    "params":["0xdAC17F958D2ee523a2206206994597C13D831ec7"],
    "id":1
}'

Result

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "blockchain": "ETH",
        "tokenName": "Tether USD",
        "tokenSymbol": "USDT",
        "tokenDecimals": 6,
        "lastUpdate": "2022-02-17T15:24:54.133465"
    }
}

Last updated