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.
Parameters
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"
}'import axios from 'axios';
const data = JSON.stringify({
"jsonrpc": "2.0",
"method": "get_info",
"params": {},
"id": "getblock.io"
});
const config = {
method: 'post',
url: 'https://go.getblock.io/<ACCESS-TOKEN>/',
headers: {
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data, null, 2)))
.catch(error => console.log(error));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
Use Cases
Error Handling
Status Code
Error Message
Cause
SDK Integration
Last updated
Was this helpful?