Parameters
Returns
- resultobject
The blockchain information object
- chainstring
The name of the current network (main, test, regtest)
- blocksinteger
The height of the most-work fully-validated chain. The genesis block has height 0
- headersinteger
The current number of headers validated
- bestblockhashstring
The hash of the current best block
- bitsstring
A compact encoding of the block's difficulty target in hexadecimal format
- targetstring
The current proof-of-work target
- difficultynumber
The difficulty of the highest height block
- timeinteger
The time for the current best block
- mediantimeinteger
The median time for the current best block
- verificationprogressnumber
An estimate of verification progress [0..1]
- initialblockdownloadboolean
(debug information) An estimate of whether this node is in Initial Block Download mode
- chainworkstring
Total amount of work in active chain in the hexadecimal form
- size_on_diskinteger
The estimated size of the block and undo files on disk
- prunedboolean
It indicates if the blocks are subject to pruning
- warningsstring
An array of strings of network and blockchain warnings
- errorobject | null
(Optional) JSON-RPC error when the request failed; omitted or null on success
- codeinteger
Error code
- messagestring
Error message
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": 121}
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": 121}