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
- objectobjectREQUIRED
A custom object with the following fields:
- contractstringREQUIRED
The ERC-20 contract address you'd like to get token details for
Returns
- objectobject
The custom response object, or null if no token details found:
- namestring
The name of this token
- symbolstring
The symbol for this token
- contractAddressstring
The contract address of this token
- decimalsstring
The number of decimals this token utilizes
- genesisBlockstring
The block number in which this contract was deployed
- genesisTransactionstring
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