get_info - Monero

Example code for the get_info JSON-RPC method. Complete guide on how to use get_info JSON-RPC in GetBlock Web3 documentation.

This method returns a comprehensive snapshot of the node's state and the network it's connected to — block height, difficulty, connection counts, sync status, and more. This is the most useful single call for health-checking and diagnostics.

Parameters

  • None

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "get_info",
    "params": {},
    "id": "getblock.io"
}'

Response Example

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "adjusted_time": 1737869732,
        "alt_blocks_count": 2,
        "block_size_limit": 600000,
        "block_size_median": 300000,
        "block_weight_limit": 600000,
        "block_weight_median": 300000,
        "bootstrap_daemon_address": "",
        "busy_syncing": false,
        "credits": 0,
        "cumulative_difficulty": 116197140699118346,
        "cumulative_difficulty_top64": 0,
        "database_size": 114352345088,
        "difficulty": 294558564173,
        "difficulty_top64": 0,
        "free_space": 514427379712,
        "grey_peerlist_size": 4999,
        "height": 3194582,
        "height_without_bootstrap": 3194582,
        "incoming_connections_count": 0,
        "mainnet": true,
        "nettype": "mainnet",
        "offline": false,
        "outgoing_connections_count": 12,
        "rpc_connections_count": 7,
        "stagenet": false,
        "start_time": 1614267442,
        "status": "OK",
        "synchronized": true,
        "target": 120,
        "target_height": 0,
        "testnet": false,
        "top_block_hash": "e22cf75f39ae720e8b71b3d120a5ac03f0db50bba6379e2850975b4859190bc6",
        "top_hash": "",
        "tx_count": 14490301,
        "tx_pool_size": 13,
        "untrusted": false,
        "version": "0.18.3.4-release",
        "was_bootstrap_ever_used": false,
        "white_peerlist_size": 1000,
        "wide_cumulative_difficulty": "0x19c19c\u2026",
        "wide_difficulty": "0x44a5b7\u2026"
    }
}

Response Parameters

Field
Type
Description

result.height

unsigned int

Current chain height

result.target_height

unsigned int

Height the node is syncing toward (0 when fully synced)

result.difficulty

unsigned int

Current network difficulty

result.tx_count

unsigned int

Cumulative transaction count on chain

result.tx_pool_size

unsigned int

Number of transactions in the mempool

result.outgoing_connections_count

unsigned int

Outgoing P2P connections

result.synchronized

boolean

true when the node has caught up with the network

result.mainnet

boolean

true for mainnet

result.nettype

string

Network type: mainnet, stagenet, or testnet

result.version

string

monerod software version

Use Cases

  • Comprehensive node health checks

  • Network statistics dashboards

  • Sync-status monitoring in failover-aware client setups

  • Wallet bootstrap calls before submitting transactions

Error Handling

Status Code
Error Message
Cause

404

Not found

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

SDK Integration

Last updated

Was this helpful?