Skip to main content

getmininginfo RPC Method

Returns mining-related information, including difficulty, hash rate, block information, and transaction pool status.

Updated on
Feb 03, 2026

Parameters

This method does not accept any parameters

Returns

result
object

The mining information object

blocks
integer

The current block height

currentblockweight
integer

The weight of the current block (if known)

currentblocktx
integer

The number of transactions in the current block

bits
string

A compact representation of the current target threshold

difficulty
number

Current difficulty target

target
string

The current proof-of-work target in hexadecimal format

networkhashps
number

Estimated network hashes per second based on the last blocks

pooledtx
integer

The number of transactions in the memory pool

chain
string

The name of the current network (e.g. main, test)

next
object

Information about the next block

height
integer

The height of the next block

bits
string

The bits value for the next block

difficulty
number

The expected difficulty for the next block

target
string

The proof-of-work target for the next block in hexadecimal format

warnings
string

An array of strings of network or blockchain warnings

currentblocksize
integer

The size of the current block

miningblocksizelimit
integer

The maximum block size limit for mining

blockmintxfee
number

Minimum fee rate for transactions in the block template, in BTC per kilobyte

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
"blocks": 933586,
5
"currentblockweight": 1228822,
6
"currentblocktx": 1051,
7
"bits": "1701fca1",
8
"difficulty": 141668107417558.2,
9
"target": "00000000000000000001fca10000000000000000000000000000000000000000",
10
"networkhashps": 934512955213370500000,
11
"pooledtx": 1094,
12
"chain": "main",
13
"next": {
14
"height": 933587,
15
"bits": "1701fca1",
16
"difficulty": 141668107417558.2,
17
"target": "00000000000000000001fca10000000000000000000000000000000000000000"
18
},
19
"warnings": ""
20
},
21
"id": 1
22
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"blocks": 933586,
5
"currentblockweight": 1228822,
6
"currentblocktx": 1051,
7
"bits": "1701fca1",
8
"difficulty": 141668107417558.2,
9
"target": "00000000000000000001fca10000000000000000000000000000000000000000",
10
"networkhashps": 934512955213370500000,
11
"pooledtx": 1094,
12
"chain": "main",
13
"next": {
14
"height": 933587,
15
"bits": "1701fca1",
16
"difficulty": 141668107417558.2,
17
"target": "00000000000000000001fca10000000000000000000000000000000000000000"
18
},
19
"warnings": ""
20
},
21
"id": 1
22
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free