Sort by Multiple fields
The query shows how to sort result by two fields
Returns 10 blocks on Ethereum, where date since 2023-03-24 and date till 2023-03-31, sorted by transaction count height, highest first: timestamp time, height, transaction count, miner address and reward.
What it returns
- timestamp time
- height
- transaction count
- miner address
- reward
Filters
- date since 2023-03-24
- date till 2023-03-31
The query
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
ethereum(network: $network) {
blocks(
options: {desc: ["transactionCount", "height"], limit: $limit, offset: $offset}
date: {since: $from, till: $till}
) {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
transactionCount
address: miner {
address
}
reward
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "ethereum",
"from": "2023-03-24",
"till": "2023-03-31T23:59:59",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- EVM Blocks · Ethereum · Blocks
- test b count · Ethereum · Blocks
- test test · Ethereum · Blocks
- optimised historical balance · Ethereum · BalanceUpdates
- MyQuery EVM · Ethereum · Blocks