Basic
Basic onchain BTC Pull from BitQuery API
Returns 10 blocks and money flows on Bitcoin, where date since 2024-04-19 and date till 2024-04-20, sorted by height, highest first: timestamp time, height, difficulty, transaction count, block size big int, block size, block hash and currency.
What it returns
- timestamp time
- height
- difficulty
- transaction count
- block size big int
- block size
- block hash
- currency
Filters
- date since 2024-04-19
- date till 2024-04-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}
date: {since: $from, till: $till}
blockHash: {}
blockSize: {}
blockVersion: {}
blockStrippedSize: {}
difficulty: {}
height: {}
) {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
difficulty
transactionCount
blockSizeBigInt
blockSize
blockHash
}
coinpath {
currency
}
addressStats(address: {}, options: {})
}
utilities {
metrics(queryId: "")
activePeriod(apiKey: "")
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "bitcoin",
"from": "2024-04-19T23:20:13.000Z",
"till": "2024-04-20T01:20:13.999Z",
"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