If you want to automatically get the metadata of some ERC20 tokens, definitely check out Chainbase API Get token metadata. You can easily retrieve the metadata for any ERC20 token with its contract address by using Chainbase API.
To better leverage the ability that Chainbase provides, you can register here for a free account and access to different APIs and data cloud.
After logging into Chainbase, visit the dashboard to get an overview. Create a new project in the console and get an API key.
fetch
in JavaScript.axios
in JavaScript. You need to install axios
using npm install axios --save
in the terminal first.Chainbase API Get token metadata takes the chain id and token contract address as parameters, and returns the metadata of the ERC20 token.
To get data printed, run command node <filename>.js
in the terminal. In this case, the data returned looks as follows.
If you want to know more details on the endpoint and optional parameters, check out:
If you meet any trouble following the tutorial, feel free to reach out to us in our Discord to get 24/7 community support.
If you want to automatically get the metadata of some ERC20 tokens, definitely check out Chainbase API Get token metadata. You can easily retrieve the metadata for any ERC20 token with its contract address by using Chainbase API.
To better leverage the ability that Chainbase provides, you can register here for a free account and access to different APIs and data cloud.
After logging into Chainbase, visit the dashboard to get an overview. Create a new project in the console and get an API key.
fetch
in JavaScript.axios
in JavaScript. You need to install axios
using npm install axios --save
in the terminal first.Chainbase API Get token metadata takes the chain id and token contract address as parameters, and returns the metadata of the ERC20 token.
To get data printed, run command node <filename>.js
in the terminal. In this case, the data returned looks as follows.
If you want to know more details on the endpoint and optional parameters, check out:
If you meet any trouble following the tutorial, feel free to reach out to us in our Discord to get 24/7 community support.