Basic API Overview

📘

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].

ChainNetwork IDBlockTransactionEventsContract
Ethereum1:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
Polygon137:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
BNB56:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
Avalanche43114:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
Arbitrum42161:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
Optimism10:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
Base8453:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
ZkSync324:white-check-mark::white-check-mark::white-check-mark::white-check-mark:
Merlin4200:white-check-mark::white-check-mark::white-check-mark::white-check-mark:

Basic API Endpoints by use case

Block

EndpointWhat to use it for?
getblockNumberLatestGet latest blocker number
getBlockDetailGet block by number

Transaction

EndpointWhat to use it for?
getAccountTxsGet transactions by account
getTxDetailGet transactions

Events

EndpointWhat to use it for?
getContractEventsGet events by contract

Contract

EndpointWhat to use it for?
callContractCall a contract