Don’t have an API key?
Go to console.chainbase.com to create an account and a new API key.
Supported chains by use case
When calling the Basic API, you can use the Network ID listed in the table below as the chain_id parameter. Basic API only supports EVM-compatible blockchains for now.
We will continue to add support for new blockchains. If there is a chain that you wish to support, but we do not, please let us know by reaching out to [email protected].
| Chain | Network ID | Block | Transaction | Events | Contract |
|---|---|---|---|---|---|
| Ethereum | 1 | ✅ | ✅ | ✅ | ✅ |
| Polygon | 137 | ✅ | ✅ | ✅ | ✅ |
| BNB | 56 | ✅ | ✅ | ✅ | ✅ |
| Avalanche | 43114 | ✅ | ✅ | ✅ | ✅ |
| Arbitrum | 42161 | ✅ | ✅ | ✅ | ✅ |
| Optimism | 10 | ✅ | ✅ | ✅ | ✅ |
| Base | 8453 | ✅ | ✅ | ✅ | ✅ |
| ZkSync | 324 | ✅ | ✅ | ✅ | ✅ |
| Merlin | 4200 | ✅ | ✅ | ✅ | ✅ |
Basic API Endpoints by use case
Block
| Endpoint | What to use it for? |
|---|---|
| getblockNumberLatest | Get latest blocker number |
| getBlockDetail | Get block by number |
Transaction
| Endpoint | What to use it for? |
|---|---|
| getAccountTxs | Get transactions by account |
| getTxDetail | Get transactions |
Events
| Endpoint | What to use it for? |
|---|---|
| getContractEvents | Get events by contract |
Contract
| Endpoint | What to use it for? |
|---|---|
| callContract | Call a contract |
