What are (ERC20) tokens and how do we index them ?

ERC20 tokens are smart contracts and represent a form of token that is commonly issued on EVM blockchains. The ERC20 standard specifies a set of common rules and guidelines that must be followed - such as having a name, symbol and decimals properties - in order for a token to be considered an ERC20 token. Tokens can be sent or received by anybody with an ethereum (or EVM chain) account and can be swapped for another token through decentralized exchanges and in particular on AMMs.

Every swap that we parse comes with data such as the pool on which it was traded and various properties such as the amounts of tokens traded, the sender etc. Every day, we analyze recent swaps in our database and insert new pools/tokens if we have swaps on a pool that is currently not indexed in our database.

📘

Decimals

The number of decimal places that the token can be divided into. For example, if a token has 18 decimals, it can be divided into 1/1,000,000,000,000,000,000 units.

Response Format

FieldTypeDescription
addressstringThe Ethereum address of the token.
networknumberThe Ethereum network where the token is located.
namestringThe name of the token.
symbolstringThe symbol of the token.
decimalsnumberThe number of decimal places for the token.
imagestring(Optional) A URL to an image of the token.
tradesnumberThe number of trades involving the token.
create_block_numbernumberThe block number on the Ethereum network where the token was created.

Example Response:

{
    "statusCode": 200,
    "status": true,
    "data": [
        {
            "address": "0xd67de0e0a0fd7b15dc8348bb9be742f3c5850454",
            "network": 250,
            "name": "Binance",
            "symbol": "BNB",
            "decimals": 18,
            "trades": 3666,
            "image": "https://cdn.blockpour.com/0xd67de0e0a0fd7b15dc8348bb9be742f3c5850454-Fantom.png",
            "create_block_number": 5972253
        },
       ...
       ],
}