Comment on page
🆕
watch_getTokenMetadata
This endpoint returns all the data about the token
- 1.
contractaddress
: DATA, 20 Bytes - smart contract address
Object
- An object with the following fields:contractAddress
:DATA
, 20 Bytes - smart contract address for which the information was requestedblockchain
: the name of BlockchaintokenName
: Full token nametokenSymbol
: TickertokenDecimals
: Тumber of decimal pointslastUpdate
: last request update date
Request example
Curl
Postman
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
}'
URL: https://ethereum.api.watchdata.io/node/jsonrpc?api_key=your_api_key
RequestType: POST
Body:
{
"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 modified 1yr ago