Home

Monero Daemon RPC API

v1.0.0
Base URL
https://xmr.nownodes.io

Daemon RPC API documentation

Authentication

api-keyAuthapiKey

API Key: api-key in header

Node

Add aux pow

Add auxiliary PoW to a Monero block template for merge mining

POST
https://xmr.nownodes.io/json_rpc

Enables merge mining without manually altering the coinbase transaction. Accepts auxiliary block information and returns a modified block template with the auxiliary PoW included.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
blocktemplate_blobstring

Hexadecimal representation of the block template

aux_powArray<object>

List of auxiliary block hashes and IDs

Show child attributes
idstring
hashstring

Response

200OK

Auxiliary PoW added successfully

400Bad Request

Bad Request – invalid parameters

403Forbidden

Forbidden – insufficient permissions

404Not Found

Not Found – block template not found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Check IP address banned

Check if an IP address is banned

POST
https://xmr.nownodes.io/json_rpc

Check whether a given IP address is banned and for how long.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
addressstring

Response

200OK

Ban status for the given IP

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Calc POW

Calculate PoW hash for a block candidate

POST
https://xmr.nownodes.io/json_rpc

Calculates the proof-of-work hash for a given block candidate blob.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
major_versionintegerrequired

The major version of Monero protocol at this block height

heightintegerrequired

Block height

block_blobstringrequired

Hexadecimal blob of the block candidate

seed_hashstringrequired

RandomX seed hash

Response

200OK

PoW hash calculation result

400Bad Request

Bad Request - invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal Server Error

Authorization

api-keyAuthapiKey in header

Flush cache

Flush bad transactions and blocks from the cache

POST
https://xmr.nownodes.io/json_rpc

Removes invalid or bad transactions and/or blocks from the daemon cache.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
bad_txsboolean

Flush bad transactions

bad_blocksboolean

Flush bad blocks

Response

200OK

Cache flush result

400Bad Request

Bad Request - invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal Server Error

Authorization

api-keyAuthapiKey in header

Flush txpool

Flush tx ids from transaction pool

POST
https://xmr.nownodes.io/json_rpc

Removes transactions from the transaction pool. If no txids are provided, all transactions in the pool are flushed.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
txidsArray<string>

List of transaction IDs to flush. Flushes all if empty.

Response

200OK

Transactions flushed successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Generate blocks

Generate blocks

POST
https://xmr.nownodes.io/json_rpc

Generates a number of blocks and returns their hashes.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
wallet_addressstring

Address to receive the coinbase rewards

amount_of_blocksinteger

Number of blocks to generate

reserve_sizeinteger

Extra space reserved for miner data

Response

200OK

Blocks generated

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get alternate chains

Get alternative chains

POST
https://xmr.nownodes.io/json_rpc

Display alternative chains seen by the node.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

Alternative chains retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

get bans

Get list of banned IPs

POST
https://xmr.nownodes.io/json_rpc

Retrieve the list of currently banned nodes by host or IP.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

List of banned nodes

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get block count

Get block count

POST
https://xmr.nownodes.io/json_rpc

Look up how many blocks are in the longest chain known to the node.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

Returns the current block count of the node

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get block header by hash

Get block header by hash

POST
https://xmr.nownodes.io/json_rpc

Retrieve block header information using the block's hash.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
hashstring

The block's sha256 hash

fill_pow_hashboolean

Add PoW hash to block_header response (optional, defaults to false)

Response

200OK

Block header information

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get block header by height

Get block header by height

POST
https://xmr.nownodes.io/json_rpc

Retrieve block header information using the block's height.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
heightinteger

The block's height

fill_pow_hashboolean

Add PoW hash to block_header response (optional, defaults to false)

Response

200OK

Block header information

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get full block information

Get full block information

POST
https://xmr.nownodes.io/json_rpc

Retrieve full block information using either block height or hash.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
heightinteger
hashstring
fill_pow_hashboolean

Add PoW hash to block_header response (optional, default false)

Response

200OK

Full block information

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get coinbase tx sum

Get coinbase and fee amounts for n last blocks starting at a particular height

POST
https://xmr.nownodes.io/json_rpc

Retrieves the sum of coinbase rewards and fees for a range of blocks.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
heightinteger
countinteger

Response

200OK

Coinbase and fees sums retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Retrieve node connections

Retrieve node connections

POST
https://xmr.nownodes.io/json_rpc

Get information about incoming and outgoing connections to your node.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

List of node connections

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get fee estimate

Get fee estimation

POST
https://xmr.nownodes.io/json_rpc

Provides an estimation of transaction fees per byte.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
grace_blocksinteger

Optional number of grace blocks

Response

200OK

Fee estimate retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get info

Retrieve general information about the node and network

POST
https://xmr.nownodes.io/json_rpc

Returns general info about the state of your Monero node and the network.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

Node information

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get last block header

Get last block header

POST
https://xmr.nownodes.io/json_rpc

Retrieves the header information for the most recent block.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
fill_pow_hashboolean

Add PoW hash to block_header response (optional, defaults to false)

Response

200OK

Block header information

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get miner data

Get miner data for custom block template

POST
https://xmr.nownodes.io/json_rpc

Provides the necessary data to create a custom block template, used by p2pool.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

Miner data retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get output distribution

Get output distribution for given amounts

POST
https://xmr.nownodes.io/json_rpc

Retrieves distribution data for one or more output amounts within a block height range.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
amountsArray<integer>
cumulativebooleanfalse
from_heightinteger0
to_heightinteger0

Response

200OK

Output distribution retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get output histogram

Get a histogram of output amounts

POST
https://xmr.nownodes.io/json_rpc

For all amounts (possibly filtered by parameters), returns the number of outputs on the chain for that amount. RingCT outputs count as 0 amount.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
amountsArray<integer>
min_countinteger
max_countinteger
unlockedboolean
recent_cutoffinteger

Response

200OK

Histogram retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get txpool backlog

Get all transaction pool backlog

POST
https://xmr.nownodes.io/json_rpc

Retrieves information about all transactions currently in the txpool backlog.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

Transaction pool backlog retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Get version

Get current node version

POST
https://xmr.nownodes.io/json_rpc

Retrieves the current version of the node software and indicates if it is an official release.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

Node version retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

On get block hash

Get block hash

POST
https://xmr.nownodes.io/json_rpc

Look up a block's hash by its height.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsArray<integer>

Response

200OK

Returns the block hash for the given height

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Relay tx

Relay transactions

POST
https://xmr.nownodes.io/json_rpc

Relay a list of transaction IDs to the network.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
txidsArray<string>

Response

200OK

Transactions relayed successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Submit block

Submit a mined block to the network

POST
https://xmr.nownodes.io/json_rpc

Sends a mined block to the Monero network for inclusion in the blockchain.

Body

application/json
jsonrpcstring
idstring
methodstring
paramsobject
Show child attributes
blockstring

Serialized block data to submit

Response

200OK

Submission result

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header

Sync info

Get synchronization information

POST
https://xmr.nownodes.io/json_rpc

Retrieve synchronization status and details about block queue and peers.

Body

application/json
jsonrpcstring
idstring
methodstring

Response

200OK

Node synchronization info retrieved successfully

400Bad Request

Bad Request - missing or invalid parameters

403Forbidden

Forbidden

404Not Found

Not Found

500Internal Server Error

Internal server error

Authorization

api-keyAuthapiKey in header