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
object
object
REQUIRED
A custom object with the following fields:
contract
string
REQUIRED
The ERC-20 contract address you'd like to get token details for
Returns
object
object
The custom response object, or null if no token details found:
name
string
The name of this token
symbol
string
The symbol for this token
contractAddress
string
The contract address of this token
decimals
string
The number of decimals this token utilizes
genesisBlock
string
The block number in which this contract was deployed
genesisTransaction
string
The hash of the transaction in which this contract was deployed
Request
Response
1{2"jsonrpc": "2.0",3"id": 67,4"result": {5"name": "ApeCoin",6"symbol": "APE",7"contractAddress": "0x4d224452801aced8b2f0aebe155379bb5d594381",8"decimals": "18",9"genesisBlock": "14204533",10"genesisTransaction": "0x2761f74e2f45d981a9d7553cbbcfbcc862cae416eb37a820300d4c19516d6fca"11}12}
1{2"jsonrpc": "2.0",3"id": 67,4"result": {5"name": "ApeCoin",6"symbol": "APE",7"contractAddress": "0x4d224452801aced8b2f0aebe155379bb5d594381",8"decimals": "18",9"genesisBlock": "14204533",10"genesisTransaction": "0x2761f74e2f45d981a9d7553cbbcfbcc862cae416eb37a820300d4c19516d6fca"11}12}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free