Block Data
Read blocks as they are mined: the latest block, any block by height or hash, and the transactions inside it, on 16 blockchains in one response shape.
Block data for indexers, explorers and monitoring
Follow the chain tip
Read the last mined block to track height and time, or list the latest blocks to catch up after a gap.
Build an explorer view
Look up any block by height or hash and show its details: hash, height, timestamp and transaction count.
Index transactions
List every transaction in a block, page by page, to feed your own database or analytics.
Make your first Block Data call
Real paths and example responses from the API reference. Add your API key and run it.
- Base URL
https://rest.cryptoapis.io - Auth: the X-API-Key header
- JSON responses, same shape on every chain
curl https://rest.cryptoapis.io/blocks/evm/ethereum/mainnet/latest/details \ -H "X-API-Key: YOUR_API_KEY"
{
"height": 234324,
"hash": "0x6b1fdd6357845016fb238d1bd58992a01b01c94e668f55e9502d65f0a50ac021",
"transactionsCount": 23432,
"timestamp": 1681893875
}
curl https://rest.cryptoapis.io/blocks/utxo/bitcoin/mainnet/latest/details \ -H "X-API-Key: YOUR_API_KEY"
{
"height": 234324,
"hash": "00000000000000000002ad6f9c74faf503bb055c54e0d0746ef34f888f95890f",
"transactionsCount": 23432,
"timestamp": 1681893875
}
curl https://rest.cryptoapis.io/blocks/evm/ethereum/mainnet/height/BLOCK_HEIGHT/transactions \ -H "X-API-Key: YOUR_API_KEY"
{
"limit": 50,
"offset": 0,
"total": 100,
"items": [
{
"hash": "0x8ff7684331492af9bf8026938535a2703a8f2f9b81ef902a5c8b9e41cf9008b7",
"timestamp": 1618208236,
"status": "mined",
"gasUsed": 123456
}
]
}
Every Block Data endpoint
Each operation links to its page in the API reference, with its parameters and responses. Paths take the blockchain and the network, so moving to another chain is a change of path.
/blocks/evm/{blockchain}/{network}/hash/{blockHash}/details/blocks/evm/{blockchain}/{network}/hash/{blockHash}/transactions/blocks/evm/{blockchain}/{network}/height/{blockHeight}/details/blocks/evm/{blockchain}/{network}/height/{blockHeight}/transactions/blocks/utxo/{blockchain}/{network}/hash/{blockHash}/details/blocks/utxo/{blockchain}/{network}/hash/{blockHash}/transactions/blocks/utxo/{blockchain}/{network}/height/{blockHeight}/details/blocks/utxo/{blockchain}/{network}/height/{blockHeight}/transactions/blocks/xrp/{network}/hash/{blockHash}/transactions/blocks/xrp/{network}/height/{blockHeight}/details/blocks/xrp/{network}/height/{blockHeight}/transactionsBlock Data works on 16 blockchains
Mainnets, and test networks where the chain has one. Open a chain for its own endpoints and quick start.
Block Data questions
Which blockchains does Block Data support?
Block Data works on 16 blockchains: Bitcoin, Ethereum, XRP Ledger, Ethereum Classic, Bitcoin Cash, Dash, Litecoin, Dogecoin, Zcash, BNB Smart Chain, Polygon, Tron, Avalanche, Arbitrum, Optimism, Base. Each chain's page lists its networks and its own endpoints.
Can I try Block Data for free?
Yes, for 14 days. The Blockchain API free trial includes Block Data and every other feature, with no card. It ends after 14 days or when its credits run out; after that, calls need a subscription, listed on the pricing page.
What can the Block Data API do?
The Block Data API retrieves data for individual blockchain blocks and the transactions recorded in them. You can get block details by block hash or height, fetch the last mined block, list the latest mined blocks, and list the transactions contained in a given block or block height. All endpoints are read-only GET requests through a single point of integration.
Can I list all transactions inside a specific block?
Yes. You can list the transactions in a block by either the block hash or the block height, so you can enumerate every transaction recorded in that block. This works across the supported EVM, UTXO, and XRP networks.
How do I get the latest or most recently mined block?
The API provides endpoints to get the last mined block and to list the latest mined blocks, returning up-to-date information about current blocks at the time of the request. These are available across the supported EVM, UTXO, and XRP networks on mainnets and testnets.
Does the Block Data API support Solana?
The Block Data product covers EVM chains, UTXO chains, and XRP for block-level queries. Solana block data is not part of this product's live block-data endpoints. If you need Solana data, check the transactions-data and contracts products, which include Solana coverage.
Start building with Block Data
14-day free trial, mainnet included. No card needed.