qn_getTokenMetadataByContractAddress RPC Method
Please note that this RPC method supports ERC-20 compliant contracts (on Ethereum mainnet). We are in the process of deprecating V1 and strongly encourage all developers to migrate to our NFT and Token API v2 bundle for improved functionalities and broader chain compatibility.
Parameters
object
array
The custom object with the following fields:
contract
string
The ERC-20 contract address you'd like to get token details for
Returns
object
The custom response object, or null if no token details found:
name
The name of this token
symbol
The symbol for this token
decimals
The number of decimals this token utilizes
genesisBlock
The block number in which this contract was deployed
genesisTransaction
The hash of the transaction in which this contract was deployed
Request
1curl https://docs-demo.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4-H "x-qn-api-version: 1" \5--data '{6"id":67,7"jsonrpc":"2.0",8"method":"qn_getTokenMetadataByContractAddress",9"params":{10"contract": "0x4d224452801ACEd8B2F0aebE155379bb5D594381"11}12}'13
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free