bitcoin blocks between time
Returns 10 blocks on Bitcoin, where time since 2021-11-21 and time till 2021-12-20, sorted by height, highest first: timestamp time, height, difficulty, transaction count and block size.
What it returns
- timestamp time
- height
- difficulty
- transaction count
- block size
Filters
- time since 2021-11-21
- time till 2021-12-20
The query
query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
bitcoin(network: $network) {
blocks(
options: {desc: "height", limit: $limit, offset: $offset}
time: {since: $from, till: $till}
) {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
difficulty
transactionCount
blockSize
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "bitcoin",
"from": "2021-11-21T00:00:00",
"till": "2021-12-20T23:59:59",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- Bitcoin height using time · Bitcoin · Blocks
- bitcoin blocks · Bitcoin · Blocks
- bitcoin-tip-of-chain-block-height · Bitcoin · Blocks
- bitcoin_blocks · Bitcoin · Blocks
- A · Bitcoin · Blocks