Skip to main content

getblockchaininfo RPC Method

Returns an object that contains the information regarding blockchain processing in different states.

Updated on
Feb 03, 2026

Parameters

This method does not accept any parameters

Returns

result
object

The blockchain information object

chain
string

The name of the current network (main, test, regtest)

blocks
integer

The height of the most-work fully-validated chain. The genesis block has height 0

headers
integer

The current number of headers validated

bestblockhash
string

The hash of the current best block

bits
string

A compact encoding of the block's difficulty target in hexadecimal format

target
string

The current proof-of-work target

difficulty
number

The difficulty of the highest height block

time
integer

The time for the current best block

mediantime
integer

The median time for the current best block

verificationprogress
number

An estimate of verification progress [0..1]

initialblockdownload
boolean

(debug information) An estimate of whether this node is in Initial Block Download mode

chainwork
string

Total amount of work in active chain in the hexadecimal form

size_on_disk
integer

The estimated size of the block and undo files on disk

pruned
boolean

It indicates if the blocks are subject to pruning

warnings
string

An array of strings of network and blockchain warnings

error
object | null

(Optional) JSON-RPC error when the request failed; omitted or null on success

code
integer

Error code

message
string

Error message

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"chain": "main",
5
"blocks": 933586,
6
"headers": 933586,
7
"bestblockhash": "00000000000000000000b286a4d4ac73f6ad82e54d9ccf6d2d71c492ceeb4930",
8
"bits": "1701fca1",
9
"target": "00000000000000000001fca10000000000000000000000000000000000000000",
10
"difficulty": 141668107417558.2,
11
"time": 1769215475,
12
"mediantime": 1769212489,
13
"verificationprogress": 0.9999987925138323,
14
"initialblockdownload": false,
15
"chainwork": "0000000000000000000000000000000000000001099579552ee2c6500b5ec71f",
16
"size_on_disk": 814911000113,
17
"pruned": false,
18
"warnings": ""
19
},
20
"id": 1
21
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"chain": "main",
5
"blocks": 933586,
6
"headers": 933586,
7
"bestblockhash": "00000000000000000000b286a4d4ac73f6ad82e54d9ccf6d2d71c492ceeb4930",
8
"bits": "1701fca1",
9
"target": "00000000000000000001fca10000000000000000000000000000000000000000",
10
"difficulty": 141668107417558.2,
11
"time": 1769215475,
12
"mediantime": 1769212489,
13
"verificationprogress": 0.9999987925138323,
14
"initialblockdownload": false,
15
"chainwork": "0000000000000000000000000000000000000001099579552ee2c6500b5ec71f",
16
"size_on_disk": 814911000113,
17
"pruned": false,
18
"warnings": ""
19
},
20
"id": 1
21
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free