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
- blockhashstringREQUIRED
The hash of the block
- verbositynumeric
Default 1. 0 for hex-encoded data, 1 for JSON object, 2 for JSON object with transaction data
- patternsboolean
When true, include byteCodePattern details for script outputs in verbose responses.
Returns
- (for verbosity = 0):object
Response when
verbosityis0. The JSON-RPC body includesresult(hex-encoded serialized block data),error, andid.- resultstring
A hex-encoded string of the serialized block data
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
The JSON-RPC request identifier
- (for verbosity = 1):object
Response when
verbosityis1(the default). The JSON-RPC body includesresult(JSON block object),error, andid.- resultobject
The block information object
- hashstring
The block hash
- confirmationsinteger
The number of confirmations, or -1 if the block is not on the main chain
- sizeinteger
The size of the block
- heightinteger
The block height or index
- versioninteger
The block version
- versionHexstring
The block version formatted in hexadecimal
- merklerootstring
The merkle root
- txarray
An array with transaction ids
- timeinteger
The block time expressed in UNIX epoch time
- mediantimeinteger
The median block time expressed in UNIX epoch time
- nonceinteger
number that miners adjust in order to find a block hash that meets the network's specified difficulty target
- bitsstring
The value of the nBits field in the block header
- difficultynumber
The estimated amount of work done to find this block relative to the estimated amount of work done to find block 0
- chainworkstring
Expected number of hashes required to produce the current chain
- nTxinteger
The number of transactions in the block
- ablastateobject
Adaptive Block Limit state for the block.
- epsiloninteger
Epsilon value in bytes.
- betainteger
Beta value in bytes.
- blocksizeinteger
Block size in bytes.
- blocksizelimitinteger
Block size limit in bytes.
- nextblocksizelimitinteger
Block size limit for the next block in bytes.
- previousblockhashstring
The hash of the previous block
- nextblockhashstring
The hash of the next block
- errorobject | null
JSON-RPC error object when the request failed, or null on success
- idinteger
The JSON-RPC request identifier
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": 3200000030},31"nextblockhash": "000000000000000000765ae043a32cc1d7a15893d93a44beffe8a7f98d872713"32},33"error": null,34"id": 135}
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": 3200000030},31"nextblockhash": "000000000000000000765ae043a32cc1d7a15893d93a44beffe8a7f98d872713"32},33"error": null,34"id": 135}