Bitcoin Block
Returns 5 blocks on Bitcoin, sorted by height, highest first: height, block hash, block size, block weight, block version, block stripped size, difficulty and 2 more fields.
What it returns
- height
- block hash
- block size
- block weight
- block version
- block stripped size
- difficulty
- transaction count
- timestamp time
The query
query($network: BitcoinNetwork!,
$limit: Int!,
$timeFormat: String!) {
bitcoin(network: $network) {
blocks(options: {limit: $limit, desc: "height"}) {
height
blockHash
blockSize
blockWeight
blockVersion
blockStrippedSize
difficulty
transactionCount
timestamp {
time (format: $timeFormat)
}
}
}
}
Variables
{"network":"bitcoin","limit":5,"timeFormat":"%Y-%m-%d %H:%M:%S"}
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