Skip to main content

getblock RPC Method

Returns information about the block.

Updated on
Nov 26, 2026

With verbosity set to 2 and patterns set to true, verbose transaction outputs can include scriptPubKey.byteCodePattern with fingerprint, pattern, patternAsm, and data fields.

Parameters

blockhash
string
REQUIRED

The hash of the block

verbosity
numeric

Default 1. 0 for hex-encoded data, 1 for JSON object, 2 for JSON object with transaction data

patterns
boolean

When true, include byteCodePattern details for script outputs in verbose responses.

Returns

(for verbosity = 0):
object

Response when verbosity is 0. The JSON-RPC body includes result (hex-encoded serialized block data), error, and id.

result
string

A hex-encoded string of the serialized block data

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

(for verbosity = 1):
object

Response when verbosity is 1 (the default). The JSON-RPC body includes result (JSON block object), error, and id.

result
object

The block information object

hash
string

The block hash

confirmations
integer

The number of confirmations, or -1 if the block is not on the main chain

size
integer

The size of the block

height
integer

The block height or index

version
integer

The block version

versionHex
string

The block version formatted in hexadecimal

merkleroot
string

The merkle root

tx
array

An array with transaction ids

time
integer

The block time expressed in UNIX epoch time

mediantime
integer

The median block time expressed in UNIX epoch time

nonce
integer

number that miners adjust in order to find a block hash that meets the network's specified difficulty target

bits
string

The value of the nBits field in the block header

difficulty
number

The estimated amount of work done to find this block relative to the estimated amount of work done to find block 0

chainwork
string

Expected number of hashes required to produce the current chain

nTx
integer

The number of transactions in the block

ablastate
object

Adaptive Block Limit state for the block.

epsilon
integer

Epsilon value in bytes.

beta
integer

Beta value in bytes.

blocksize
integer

Block size in bytes.

blocksizelimit
integer

Block size limit in bytes.

nextblocksizelimit
integer

Block size limit for the next block in bytes.

previousblockhash
string

The hash of the previous block

nextblockhash
string

The hash of the next block

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

Request
Response
1
{
2
"result": {
3
"hash": "000000000000000001dd07f5dadc0e951c3165f789f40e2a8d5f8ebf62ffa357",
4
"confirmations": 18,
5
"size": 831,
6
"height": 978880,
7
"version": 604987392,
8
"versionHex": "240f6000",
9
"merkleroot": "bcf8390f67b0fcc9802a502d95054fb83c4b03bc1c6340e5382735d9356d6069",
10
"tx": [
11
"ced1ae02b02e04ba4ef6062ae801b2e14f6c73e44c9150fa9c61611576e225b6",
12
"07f948473e4c5369381205a553cb6058cb0f2e744c36a0098b1bc3ce6604b7b9",
13
"1cc0c1e6c6b229508f4b1d19f70870969f7f19ee9a2403b49e94e4d3aaed6bd4",
14
"83d7c92887b713e36018b3323487358baabafaa0604a19485bb50360fde053f8"
15
],
16
"time": 1795590193,
17
"mediantime": 1795585210,
18
"nonce": 2563756990,
19
"bits": "18023302",
20
"difficulty": 499940987485.6044,
21
"chainwork": "0000000000000000000000000000000000000000031dff8cb4eec35bd60dc180",
22
"nTx": 4,
23
"previousblockhash": "0000000000000000006995f539609db34b9830a702cee6a07560a4b54922eb9b",
24
"ablastate": {
25
"epsilon": 16000000,
26
"beta": 16000000,
27
"blocksize": 831,
28
"blocksizelimit": 32000000,
29
"nextblocksizelimit": 32000000
30
},
31
"nextblockhash": "000000000000000000765ae043a32cc1d7a15893d93a44beffe8a7f98d872713"
32
},
33
"error": null,
34
"id": 1
35
}
1
{
2
"result": {
3
"hash": "000000000000000001dd07f5dadc0e951c3165f789f40e2a8d5f8ebf62ffa357",
4
"confirmations": 18,
5
"size": 831,
6
"height": 978880,
7
"version": 604987392,
8
"versionHex": "240f6000",
9
"merkleroot": "bcf8390f67b0fcc9802a502d95054fb83c4b03bc1c6340e5382735d9356d6069",
10
"tx": [
11
"ced1ae02b02e04ba4ef6062ae801b2e14f6c73e44c9150fa9c61611576e225b6",
12
"07f948473e4c5369381205a553cb6058cb0f2e744c36a0098b1bc3ce6604b7b9",
13
"1cc0c1e6c6b229508f4b1d19f70870969f7f19ee9a2403b49e94e4d3aaed6bd4",
14
"83d7c92887b713e36018b3323487358baabafaa0604a19485bb50360fde053f8"
15
],
16
"time": 1795590193,
17
"mediantime": 1795585210,
18
"nonce": 2563756990,
19
"bits": "18023302",
20
"difficulty": 499940987485.6044,
21
"chainwork": "0000000000000000000000000000000000000000031dff8cb4eec35bd60dc180",
22
"nTx": 4,
23
"previousblockhash": "0000000000000000006995f539609db34b9830a702cee6a07560a4b54922eb9b",
24
"ablastate": {
25
"epsilon": 16000000,
26
"beta": 16000000,
27
"blocksize": 831,
28
"blocksizelimit": 32000000,
29
"nextblocksizelimit": 32000000
30
},
31
"nextblockhash": "000000000000000000765ae043a32cc1d7a15893d93a44beffe8a7f98d872713"
32
},
33
"error": null,
34
"id": 1
35
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free