EVM Blocks Schema
Blocks API provide details on blocks.
You can use different filters to query data from different dimensions. You can find more examples here
Let's see an example of Blocks API to get the latest 10 blocks on Ethereum blockchain.
{
EVM(dataset: archive, network: eth) {
Blocks(limit: { count: 10 }, orderBy: { descending: Block_Number }) {
Block {
Time
Date
Number
Hash
}
}
}
}
You can see more example of Blocks api in here.
Build with Bitquery
Ready to run this in production?
Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.