Monero Daemon RPC API
v1.0.0https://xmr.nownodes.ioDaemon RPC API documentation
Authentication
api-keyAuthapiKeyAPI Key: api-key in header
Node
Add aux pow
Add auxiliary PoW to a Monero block template for merge mining
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
jsonrpcstringidstringmethodstringparamsobjectResponse
Auxiliary PoW added successfully
Bad Request – invalid parameters
Forbidden – insufficient permissions
Not Found – block template not found
Internal server error
Authorization
api-keyAuthapiKey in headerCheck IP address banned
Check if an IP address is banned
Check whether a given IP address is banned and for how long.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Ban status for the given IP
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerCalc POW
Calculate PoW hash for a block candidate
Calculates the proof-of-work hash for a given block candidate blob.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
PoW hash calculation result
Bad Request - invalid parameters
Forbidden
Not Found
Internal Server Error
Authorization
api-keyAuthapiKey in headerFlush cache
Flush bad transactions and blocks from the cache
Removes invalid or bad transactions and/or blocks from the daemon cache.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Cache flush result
Bad Request - invalid parameters
Forbidden
Not Found
Internal Server Error
Authorization
api-keyAuthapiKey in headerFlush txpool
Flush tx ids from transaction pool
Removes transactions from the transaction pool. If no txids are provided, all transactions in the pool are flushed.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Transactions flushed successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGenerate blocks
Generate blocks
Generates a number of blocks and returns their hashes.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Blocks generated
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet alternate chains
Get alternative chains
Display alternative chains seen by the node.
Body
jsonrpcstringidstringmethodstringResponse
Alternative chains retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerget bans
Get list of banned IPs
Retrieve the list of currently banned nodes by host or IP.
Body
jsonrpcstringidstringmethodstringResponse
List of banned nodes
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet block count
Get block count
Look up how many blocks are in the longest chain known to the node.
Body
jsonrpcstringidstringmethodstringResponse
Returns the current block count of the node
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet block header by hash
Get block header by hash
Retrieve block header information using the block's hash.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Block header information
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet block header by height
Get block header by height
Retrieve block header information using the block's height.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Block header information
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet full block information
Get full block information
Retrieve full block information using either block height or hash.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Full block information
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet coinbase tx sum
Get coinbase and fee amounts for n last blocks starting at a particular height
Retrieves the sum of coinbase rewards and fees for a range of blocks.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Coinbase and fees sums retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerRetrieve node connections
Retrieve node connections
Get information about incoming and outgoing connections to your node.
Body
jsonrpcstringidstringmethodstringResponse
List of node connections
Bad Request - missing or invalid parameters
Forbidden
Internal server error
Authorization
api-keyAuthapiKey in headerGet fee estimate
Get fee estimation
Provides an estimation of transaction fees per byte.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Fee estimate retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet info
Retrieve general information about the node and network
Returns general info about the state of your Monero node and the network.
Body
jsonrpcstringidstringmethodstringResponse
Node information
Bad Request - missing or invalid parameters
Forbidden
Internal server error
Authorization
api-keyAuthapiKey in headerGet last block header
Get last block header
Retrieves the header information for the most recent block.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Block header information
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet miner data
Get miner data for custom block template
Provides the necessary data to create a custom block template, used by p2pool.
Body
jsonrpcstringidstringmethodstringResponse
Miner data retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet output distribution
Get output distribution for given amounts
Retrieves distribution data for one or more output amounts within a block height range.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Output distribution retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet output histogram
Get a histogram of output amounts
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
jsonrpcstringidstringmethodstringparamsobjectResponse
Histogram retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet txpool backlog
Get all transaction pool backlog
Retrieves information about all transactions currently in the txpool backlog.
Body
jsonrpcstringidstringmethodstringResponse
Transaction pool backlog retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerGet version
Get current node version
Retrieves the current version of the node software and indicates if it is an official release.
Body
jsonrpcstringidstringmethodstringResponse
Node version retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerOn get block hash
Get block hash
Look up a block's hash by its height.
Body
jsonrpcstringidstringmethodstringparamsArray<integer>Response
Returns the block hash for the given height
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerRelay tx
Relay transactions
Relay a list of transaction IDs to the network.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Transactions relayed successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerSubmit block
Submit a mined block to the network
Sends a mined block to the Monero network for inclusion in the blockchain.
Body
jsonrpcstringidstringmethodstringparamsobjectResponse
Submission result
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in headerSync info
Get synchronization information
Retrieve synchronization status and details about block queue and peers.
Body
jsonrpcstringidstringmethodstringResponse
Node synchronization info retrieved successfully
Bad Request - missing or invalid parameters
Forbidden
Not Found
Internal server error
Authorization
api-keyAuthapiKey in header