Get a paginated list of tokens, optionally filter by type.
GET/:network/tokens
Get a paginated list of tokens, optionally filter by type.
Request
Path Parameters
Blockchain network name or chain id
Query Parameters
Possible values: [erc20
, erc721
, erc777
, erc1155
]
Filter by token type (erc20, erc721, erc777, erc1155)
Page number for pagination
Number of tokens per page, Max 100 per page
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
The paginated list of tokens.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Blockchain network name For the requested query
The chain ID of the network.
The current page number
The number of tokens returned per page
The total number of Tokens.
The total number of pages for the requested range
Link to the next page of tokens
Link to the previous page of tokens
tokens
object[]
required
The list of tokens for the current page
Token contract address in hexadecimal format
Block number at the time of token creation
Type of the token (e.g., ERC20, ERC721, ERC777, ERC1155)
Token name (required for all token types)
Token symbol (required for all token types)
Number of decimals for ERC20 tokens
Granularity for ERC777 tokens
{
"network_name": "eth-mainnet",
"chain_id": 1,
"page": 1,
"limit": 10,
"total_results": 100,
"total_pages": 10,
"next": "https://api.histori.xyz/v1/eth-mainnet/tokens?page=2&limit=10",
"previous": "https://api.histori.xyz/v1/eth-mainnet/tokens?page=1&limit=10",
"tokens": [
{
"token_address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd",
"block_height": 123456,
"token_type": "ERC20",
"name": "My Token",
"symbol": "MTK",
"decimals": 18,
"granularity": "1"
}
]
}
Invalid request parameters.