API Keys
API Keys are available to enhance request availability. Keys give users the ability to query the API up to 10 requests/sec.
A maximum of 3 keys can be created for each account.

1) Login to My Account in Blockscout <login instructions> to get started. Once logged in:
  1. 1.
    Go to API keys in the user menu.
  2. 2.
    Press Add API key.
2) Fill in the Name field. Add a Name for your API key. This is for your information only and to differentiate between different keys. Press Save to generate.
3) API key generated. The API Key is now added to your home screen. You can add 2 more additional keys (up to 3 per account) or edit names and remove from here.

Add the following to the end of a query to use your API key: &apikey=your-api-key
For example, a query to get more info on USDT on the Gnosis Chain with the API key fdbfa288-1695-454e-a369-4501253a120would be formatted as follows:
https://blockscout.com/xdai/mainnet/api?module=token&action=getToken&contractaddress=0x4ECaBa5870353805a9F068101A40E0f32ed605C6&apikey=fdbfa288-1695-454e-a369-4501253a120
More on this RPC call (Get ERC-20 or ERC-721 token by contract address) and other calls can be found in the RPC docs for Gnosis Chain at https://blockscout.com/xdai/mainnet/api-docs#token
Export as PDF
Copy link
On this page
Create API key
Use API key