qn_getTokenMetadataByContractAddress (v2) RPC Method
Please note that this RPC method requires the Token and NFT API v2 bundle add-on enabled on your QuickNode endpoint. Additionally, for a contract to be fully indexed, it must be verified on Etherscan.
Parameters
array
array
An array with the first element being:
object
A 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--data '{5"id":67,6"jsonrpc":"2.0",7"method":"qn_getTokenMetadataByContractAddress",8"params": [{9"contract": "0x4d224452801ACEd8B2F0aebE155379bb5D594381"10}]11}'12
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free