Combined Queries
Several queries can be combined and return results in one request:
- queries to different databases and blockchains can be combined in one query;
- queries to different cubes can be combined as well
Example of query returning max block for ETH and BSC networks:
query {
eth: EVM(network: eth) {
Blocks {
Block{
Number(maximum: Block_Number)
}
}
}
bsc: EVM(network: bsc) {
Blocks {
Block{
Number(maximum: Block_Number)
}
}
}
}
tip
Use Aliases to name the elements if needed
danger
Subscriptions and queries can not be combined
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.