Note: "[atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.")" refer to the smallest fraction of 1 XMR according to the monerod implementation. **1 XMR = 1e12 [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").**
The majority of monerod RPC calls use the daemon's `json_rpc` interface to request various bits of information. These methods all follow a similar structure, for example:
Easily enable merge mining with Monero without requiring software that manually alters the extra field in the coinbase tx to include the merkle root of the aux blocks.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
The example below uses monerod with the start flags `--regtest --offline --fixed-difficulty 1`. `--offline` ensures that the node does not connect to the main network and learn of its latest chaintip and `--fixed-difficulty` keeps the difficulty constant, allowing a large number of blocks to be generated quickly.
- _wide_difficulty_ - string; Network difficulty (analogous to the strength of the network) as a hexadecimal string representing a 128-bit number.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
Full block information can be retrieved by either block height or hash, like with the above block header calls. For full block information, both lookups use the same method, but with different input parameters.
- _prev_id_ - Same as `prev_hash` in block header.
- _nonce_ - Same as in block header.
- _miner_tx_ - Miner transaction information
- _version_ - Transaction version number.
- _unlock_time_ - The block height when the coinbase transaction becomes spendable.
- _vin_ - List of transaction inputs:
- _gen_ - Miner txs are coinbase txs, or "gen".
- _height_ - This block height, a.k.a. when the coinbase is generated.
- _vout_ - List of transaction outputs. Each output contains:
- _amount_ - The amount of the coinbase output, in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _target_ -
- _tagged_key_ -
- _key_ - the public key of the output
- _view_tag_ - The 1st byte of a shared secret (used for reducing synchronization time)
- _extra_ - Usually called the "transaction ID" but can be used to include any random 32 byte/64 character hex string.
- _rct_signatures_ - Contain signatures of tx signers. Coinbased txs do not have signatures.
- _tx_hashes_ - List of hashes of non-coinbase transactions in the block. If there are no other transactions, this will be an empty list.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
In the following example, block 2751506 is looked up by its height. Note that block 2751506 does not have any non-coinbase transactions. (See the next example for a block with extra transactions):
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
Block header information can be retrieved using either a block's hash or height. This method includes a block's hash as an input parameter to retrieve basic information about the block.
Alias: _getblockheaderbyhash_ .
Inputs:
- _hash_ - string; The block's sha256 hash.
- _fill_pow_hash_ - boolean; (Optional; defaults to `false`) Add PoW hash to block_header response.
Outputs:
- _block_header_ - A structure containing block header information. See [get_last_block_header](#get_last_block_header).
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
In this example, block 912345 is looked up by its hash:
Similar to [get_block_header_by_hash](#get_block_header_by_hash) above, this method includes a block's height as an input parameter to retrieve basic information about the block.
Alias: _getblockheaderbyheight_ .
Inputs:
- _height_ - unsigned int; The block's height.
- _fill_pow_hash_ - boolean; (Optional; defaults to `false`) Add PoW hash to block_header response.
Outputs:
- _block_header_ - A structure containing block header information. See [get_last_block_header](#get_last_block_header).
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
In this example, block 912345 is looked up by its height (notice that the returned information is the same as in the previous example):
Similar to [get_block_header_by_height](#get_block_header_by_height) above, but for a range of blocks. This method includes a starting block height and an ending block height as parameters to retrieve basic information about the range of blocks.
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _headers_ - array of `block_header` (a structure containing block header information. See [get_last_block_header](#get_last_block_header)).
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
In this example, blocks range from height 1545999 to 1546000 is looked up (notice that the returned information are ascending order and that it is at the April 2018 network upgrade time):
- _seed_hash_ - string; Hash of block to use as seed for Random-X proof-of-work.
- _seed_height_ - unsigned int; Height of block to use as seed for Random-X proof-of-work.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _wide_difficulty_ - string; Network difficulty (analogous to the strength of the network) as a hexadecimal string representing a 128-bit number.
Get the coinbase amount and the fees amount for n last blocks starting at particular height
Alias: _None_ .
Inputs:
- _height_ - unsigned int; Block height from which getting the amounts
- _count_ - unsigned int; number of blocks to include in the sum
Outputs:
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _emission_amount_ - unsigned int; Least significant 64 bits for 128 bit integer representing the sum of coinbase rewards in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR."). (See src/rpc/core_rpc_server.cpp store_128)
- _emission_amount_top64_ - unsigned it; Most significant 64 bits for 128 bit integer representing the sum of coinbase rewards in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.")
- _fee_amount_ - unsigned int; Most significant 64 bits for 128 bit integer representing the sum of fees in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _fee_amount_top64_ - unsigned int; Most significant 64 bits for 128 bit integer representing the sum of fees in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _wide_emission_amount_ - string (128 bit hex encoded integer); Sum of coinbase rewards in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _wide_fee_amount_ - string (128 bit hex encoded integer); Sum of fees in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _$1_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _fee_ - unsigned int; Amount of fees estimated per byte in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.")
- _fees_ - array of unsigned int; Represents the base fees at different priorities [slow, normal, fast, fastest].
- _quantization_mask_ - unsigned int; Final fee should be rounded up to an even multiple of this value
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _adjusted_time_ - unsigned int; Current time approximated from chain data, as Unix time.
- _alt_blocks_count_ - unsigned int; Number of alternative blocks to main chain.
- _block_size_limit_ - unsigned int; Backward compatibility, same as _block_weight_limit_ , use that instead
- _block_size_median_ - unsigned int; Backward compatibility, same as _block_weight_median_ , use that instead
- _block_weight_limit_ - unsigned int; Maximum allowed adjusted block size based on latest 100000 blocks
- _block_weight_median_ - unsigned int; Median adjusted block size of latest 100000 blocks
- _bootstrap_daemon_address_ - string; @Bootstrap-node to give immediate usability to wallets while syncing by proxying RPC to it. (Note: the replies may be untrustworthy).
- _busy_syncing_ - boolean; States if new blocks are being added (`true`) or not (`false`).
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _cumulative_difficulty_ - unsigned int; Least-significant 64 bits of the 128-bit cumulative difficulty.
- _cumulative_difficulty_top64_ - unsigned int; Most-significant 64 bits of the 128-bit cumulative difficulty.
- _database_size_ - unsigned int; The size of the blockchain database, in bytes.
- _difficulty_ - unsigned int; Least-significant 64 bits of the 128-bit network difficulty.
- _difficulty_top64_ - unsigned int; Most-significant 64 bits of the 128-bit network difficulty.
- _free_space_ - unsigned int; Available disk space on the node.
- _height_ - unsigned int; Current length of longest chain known to daemon.
- _height_without_bootstrap_ - unsigned int; Current length of the local chain of the daemon.
- _incoming_connections_count_ - unsigned int; Number of peers connected to and pulling from your node.
- _mainnet_ - boolean; States if the node is on the mainnet (`true`) or not (`false`).
- _nettype_ - string; Network type (one of `mainnet`, `stagenet` or `testnet`).
- _offline_ - boolean; States if the node is offline (`true`) or online (`false`).
- _outgoing_connections_count_ - unsigned int; Number of peers that you are connected to and getting information from.
- _rpc_connections_count_ - unsigned int; Number of RPC client connected to the daemon (Including this RPC request).
- _stagenet_ - boolean; States if the node is on the stagenet (`true`) or not (`false`).
- _start_time_ - unsigned int; Start time of the daemon, as UNIX time.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _synchronized_ - boolean; States if the node is synchronized (`true`) or not (`false`).
- _target_ - unsigned int; Current target for next proof of work.
- _target_height_ - unsigned int; The height of the next block in the chain.
- _testnet_ - boolean; States if the node is on the testnet (`true`) or not (`false`).
- _top_block_hash_ - string; Hash of the highest block in the chain.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _tx_count_ - unsigned int; Total number of non-coinbase transaction in the chain.
- _tx_pool_size_ - unsigned int; Number of transactions that have been broadcast but not included in a block.
- _$1_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _update_available_ - boolean; States if a newer Monero software version is available.
- _version_ - string; The version of the Monero software the node is running.
- _was_bootstrap_ever_used_ - boolean; States if a bootstrap node has ever been used since the daemon started.
- _white_peerlist_size_ - unsigned int; White Peerlist Size
- _wide_cumulative_difficulty_ - Cumulative difficulty of all blocks in the blockchain as a hexadecimal string representing a 128-bit number.
- _wide_difficulty_ - string; Network difficulty (analogous to the strength of the network) as a hexadecimal string representing a 128-bit number.
- _block_header_ - A structure containing block header information.
- _block_size_ - unsigned int; Backward compatibility, same as _block_weight_ , use that instead
- _block_weight_ - unsigned int; The adjusted block size, in bytes. This is the raw size, plus a positive adjustment for any Bulletproof transactions with more than 2 outputs.
- _cumulative_difficulty_ - unsigned int; Least-significant 64 bits of the cumulative difficulty of all blocks up to the block in the reply.
- _cumulative_difficulty_top64_ - unsigned int; Most-significant 64 bits of the 128-bit cumulative difficulty.
- _depth_ - unsigned int; The number of blocks succeeding this block on the blockchain. A larger number means an older block.
- _difficulty_ - unsigned int; The strength of the Monero network based on mining power.
- _difficulty_top64_ - unsigned int; Most-significant 64 bits of the 128-bit network difficulty.
- _hash_ - string; The hash of this block.
- _height_ - unsigned int; The number of blocks preceding this block on the blockchain.
- _long_term_weight_ - unsigned int; The long term block weight, based on the median weight of the preceding 100000 blocks.
- _major_version_ - unsigned int; The major version of the monero protocol at this block height.
- _miner_tx_hash_ - string; The hash of this block's coinbase transaction.
- _minor_version_ - unsigned int; The minor version of the monero protocol at this block height.
- _nonce_ - unsigned int; a cryptographic random one-time number used in mining a Monero block.
- _num_txes_ - unsigned int; Number of transactions in the block, not counting the coinbase tx.
- _orphan_status_ - boolean; Usually `false`. If `true`, this block is not part of the longest chain.
- _pow_hash_ - string; The hash, as a hexadecimal string, calculated from the block as proof-of-work.
- _prev_hash_ - string; The hash of the block immediately preceding this block in the chain.
- _reward_ - unsigned int; The amount of new [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.") generated in this block and rewarded to the miner. Note: 1 XMR = 1e12 [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _timestamp_ - unsigned int; The unix time at which the block was recorded into the blockchain.
- _wide_cumulative_difficulty_ - Cumulative difficulty of all blocks in the blockchain as a hexadecimal string representing a 128-bit number.
- _wide_difficulty_ - string; Network difficulty (analogous to the strength of the network) as a hexadecimal string representing a 128-bit number.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _histogram_ - list of histogram entries, in the following structure:
- _amount_ - unsigned int; Output amount in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.")
- _total_instances_ - unsigned int;
- _unlocked_instances_ - unsigned int;
- _recent_instances_ - unsigned int;
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _release_ - boolean; States if the daemon software version corresponds to an official tagged release (`true`), or not (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _earliest_height_ - unsigned int; Block height at which hard fork would be enabled if voted in.
- _enabled_ - boolean; Tells if hard fork is enforced.
- _state_ - unsigned int; Current hard fork state: 0 (There is likely a hard fork), 1 (An update is needed to fork properly), or 2 (Everything looks good).
- _$1_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _version_ - unsigned int; The major block version for the fork.
- _votes_ - unsigned int; Number of votes towards hard fork.
- _voting_ - unsigned int; Hard fork voting status.
- _window_ - unsigned int; Number of blocks over which current votes are cast. Default is 10080 blocks.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
* Block blob data - array of strings; list of block blobs which have been mined. See [get_block_template](#get_block_template) to get a blob on which to mine.
Outputs:
- _status_ - string; Block submit status.
In this example, a block blob which has not been mined is submitted:
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _height_ - unsigned int;
- _next_needed_pruning_seed_ - unsigned int; The next pruning seed needed for pruned sync.
- _overview_ - string; Overview of current block queue where each character in the string represents a block set in the queue. `. = requested but not received`, `o = set received`, `m = received set that matches the next blocks needed`
- _peers_ - array of peer structure, defined as follows:
- _info_ - structure of connection info, as defined in [get_connections](#get_connections)
- _spans_ - array of span structure, defined as follows (optional, absent if node is fully synced):
- _connection_id_ - string; Id of connection
- _nblocks_ - unsigned int; number of blocks in that span
- _rate_ - unsigned int; connection rate
- _remote_address_ - string; peer address the node is downloading (or has downloaded) than span from
- _size_ - unsigned int; total number of bytes in that span's blocks (including txes)
- _speed_ - unsigned int; connection speed
- _start_block_height_ - unsigned int; block height of the first block in that span
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _target_height_ - unsigned int; target height the node is syncing from (will be 0 if node is fully synced)
Not all daemon RPC calls use the JSON_RPC interface. This section gives examples of these calls.
The data structure for these calls is different than the JSON RPC calls. Whereas the JSON RPC methods were called using the `/json_rpc` extension and specifying a method, these methods are called at their own extensions. For example:
Note: It is recommended to use JSON RPC where such alternatives exist, rather than the following methods. For example, the recommended way to get a node's height is via the JSON RPC methods [get_info](#get_info) or [get_last_block_header](#get_last_block_header), rather than [get_height](#get_height) below.
For calls that end with **.bin**, the data is exchanged in the form of binary, serialized objects, as defined in the [Core RPC Server](https://github.com/monero-project/monero/blob/master/src/rpc/core_rpc_server_commands_defs.h).
### **/get_alt_blocks_hashes**
Get the known blocks hashes which are not on the main chain.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _block_ids_ - binary array of hashes; first 10 blocks id goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _block_ids_ - binary array of hashes; first 10 blocks id goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _height_ - unsigned int; Current length of longest chain known to daemon.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _limit_down_ - unsigned int; Download limit in kBytes per second
- _limit_up_ - unsigned int; Upload limit in kBytes per second
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`).
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _outs_ - array of structure _outkey_ as follows:
- _amount_ - unsigned int;
- _height_ - unsigned int; block height of the output
- _key_ - the public key of the output
- _mask_
- _txid_ - transaction id
- _unlocked_ - boolean; States if output is locked (`false`) or not (`true`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _whites_ - array of `public_node` structures defined as follows:
- _host_ - string; The node's IP address. This includes IPv4, IPv6, Onion, and i2p addresses.
- _last_seen_ - unsigned int; UNIX timestamp of the last time the node was seen.
- _rpc_credits_per_hash_ - unsigned int; If payment for RPC is enabled, the number of credits the node is requesting per hash. Otherwise, 0.
- _rpc_port_ - unsigned int; RPC port number of the node.
- _gray_ - array of `public_node` structures; This is an array structures containing node information on gray peers. See _white_ above.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
Show information about valid transactions seen by the node but not yet mined into a block, as well as spent key image information for the txpool in the node's memory.
Alias: _None_ .
Inputs: _None_ .
Outputs:
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _spent_key_images_ - List of spent output key images:
- _id_hash_ - string; Key image.
- _txs_hashes_ - string list; tx hashes of the txes (usually one) spending that key image.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _transactions_ - List of transactions in the mempool are not in a block on the main chain at the moment:
- _blob_size_ - unsigned int; The size of the full transaction blob.
- _do_not_relay_ ; boolean; States if this transaction should not be relayed
- _double_spend_seen_ - boolean; States if this transaction has been seen as double spend.
- _fee_ - unsigned int; The amount of the mining fee included in the transaction, in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _id_hash_ - string; The transaction ID hash.
- _kept_by_block_ - boolean; States if the tx was included in a block at least once (`true`) or not (`false`).
- _last_failed_height_ - unsigned int; If the transaction validation has previously failed, this tells at what height that occurred.
- _last_failed_id_hash_ - string; Like the previous, this tells the previous transaction ID hash.
- _last_relayed_time_ - unsigned int; Last unix time at which the transaction has been relayed.
- _max_used_block_height_ - unsigned int; Tells the height of the most recent block with an output used in this transaction.
- _max_used_block_id_hash_ - string; Tells the hash of the most recent block with an output used in this transaction.
- _receive_time_ - unsigned int; The Unix time that the transaction was first seen on the network by the node.
- _relayed_ - boolean; States if this transaction has been relayed
- _tx_blob_ - unsigned int; Hexadecimal blob representing the transaction.
- _tx_json_ - json string; JSON structure of all information in the transaction:
- _version_ - Transaction version
- _unlock_time_ - If not 0, this tells when a transaction output is spendable.
- _vin_ - List of inputs into transaction:
- _key_ - The public key of the previous output spent in this transaction.
- _amount_ - The amount of the input, in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _key_offsets_ - A list of integer offsets to the input.
- _k_image_ - The key image for the given input
- _vout_ - List of outputs from transaction:
- _amount_ - Amount of transaction output (if coinbase output, otherwise 0), in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _target_ - Output destination information:
- _tagged_key_
- _key_ - The stealth public key of the receiver. Whoever owns the private key associated with this key controls this transaction output.
- _view_tag_ - The 1st byte of a shared secret (used for reducing synchronization time).
- _extra_ - Usually called the "transaction ID" but can be used to include any random 32 bytes.
- _rct_signatures_ - List of signatures used in ring signature to hide the true origin of the transaction.
- _ecdhInfo_ - array of Diffie Helman Elipctic curves structures as follows:
- _mask_ - String;
- _amount_ - String;
- _outPk_ - List
- _txnFee_ -
- _type_ -
- _rctsig_prunable_ -
- _CLSAGs_ - List
- _D_ -
- _c1_ -
- _s_ - List
- _bpp_ - List
- _A_ -
- _A1_ -
- _B_ -
- _L_ - List
- _R_ - List
- _d1_ -
- _r1_ -
- _s1_ -
- _npb_ -
- _pseudoOuts_ -
- _weight_ -
Example (Note: Some lists in the returned information have been truncated for display reasons):
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _tx_hashes_ - array of strings; This is an array of transaction hashes in hexadecimal string form.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _bytes_max_ - unsigned int; Max transaction size in pool
- _bytes_med_ - unsigned int; Median transaction size in pool
- _bytes_min_ - unsigned int; Min transaction size in pool
- _bytes_total_ - unsigned int; total size of all transactions in pool
- _fee_total_ - unsigned int; The sum of the fees for all transactions currently in the transaction pool [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _histo_ - structure _txpool_histo_ as follows:
- _txs_ - unsigned int; number of transactions
- _bytes_ - unsigned int; size in bytes.
- _histo_98pc_ unsigned int; the time 98% of txes are "younger" than
- _num_10m_ unsigned int; number of transactions in pool for more than 10 minutes
- _num_double_spends_ unsigned int; number of double spend transactions
- _num_failing_ unsigned int; number of failing transactions
- _num_not_relayed_ unsigned int; number of non-relayed transactions
- _oldest_ unsigned int; unix time of the oldest transaction in the pool
- _txs_total_ unsigned int; total number of transactions.
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _missed_tx_ - array of strings. (Optional - returned if not empty) Transaction hashes that could not be found.
- _status_ - General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _txs_ - array of structure _entry_ as follows:
- _as_hex_ - string; Full transaction information as a hex string.
- _as_json_ - json string; List of transaction info:
- _version_ - Transaction version
- _unlock_time_ - If not 0, this tells when a transaction output is spendable.
- _vin_ - List of inputs into transaction:
- _key_ - The public key of the previous output spent in this transaction.
- _amount_ - The amount of the input, in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _key_offsets_ - A list of integer offsets to the input.
- _k_image_ - The key image for the given input
- _vout_ - List of outputs from transaction:
- _amount_ - Amount of transaction output (if coinbase output, otherwise 0), in [atomic-units](https://www.getmonero.org/resources/moneropedia/atomic-units.html "Atomic Units refer to the smallest fraction of 1 XMR.").
- _target_ - Output destination information:
- _tagged_key_
- _key_ - The stealth public key of the receiver. Whoever owns the private key associated with this key controls this transaction output.
- _view_tag_ - The 1st byte of a shared secret (used for reducing synchronization time).
- _extra_ - Usually called the "payment ID" but can be used to include any random 32 bytes.
- _rct_signatures_ - List of signatures used in ring signature to hide the true origin of the transaction.
- _ecdhInfo_ - array of Diffie Helman Elipctic curves structures as follows:
- _mask_ - String;
- _amount_ - String;
- _outPk_ - List
- _txnFee_ -
- _type_ -
- _rctsig_prunable_ -
- _CLSAGs_ - List
- _D_ -
- _c1_ -
- _s_ - List
- _bpp_ - List
- _A_ -
- _A1_ -
- _B_ -
- _L_ - List
- _R_ - List
- _d1_ -
- _r1_ -
- _s1_ -
- _npb_ -
- _pseudoOuts_ -
- _block_height_ - unsigned int; block height including the transaction
- _block_timestamp_ - unsigned int; Unix time at chich the block has been added to the blockchain
- _double_spend_seen_ - boolean; States if the transaction is a double-spend (`true`) or not (`false`)
- _in_pool_ - boolean; States if the transaction is in pool (`true`) or included in a block (`false`)
- _output_indices_ - array of unsigned int; transaction indexes
- _prunable_as_hex_ - string; Prunable block encoded as a hex string.
- _prunable_hash_ - string; Keccak-256 hash of the prunable portion of the block.
- _pruned_as_hex_ - string; Pruned block encoded as hex string.
- _tx_hash_ - string; transaction hash
- _txs_as_hex_ - string; Full transaction information as a hex string (old compatibility parameter)
- _txs_as_json_ - json string; (Optional - returned if set in inputs. Old compatibility parameter) List of transaction as in _as_json_ above:
Example 2: Decode returned transaction information in JSON format. Note: the "vin", "vout", "rct_signatures", "rctsig_prunable" list have been truncated in the displayed return for space considerations.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _credits_ - unsigned int; If payment for RPC is enabled, the number of credits available to the requesting client. Otherwise, 0.
- _spent_status_ - unsigned int list; List of statuses for each image checked. Statuses are follows: 0 = unspent, 1 = spent in blockchain, 2 = spent in transaction pool
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _top_hash_ - string; If payment for RPC is enabled, the hash of the highest block in the chain. Otherwise, empty.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _active_ - boolean; States if mining is enabled (`true`) or disabled (`false`).
- _address_ - string; Account address daemon is mining to. Empty if not mining.
- _bg_idle_threshold_ - int; Minimum average idle percentage over lookback interval.
- _bg_ignore_battery_ - boolean; If false, the device will stop mining when battery is low.
- _bg_min_idle_seconds_ - int; Minimum lookback interval in seconds for determining whether the device is idle or not.
- _bg_target_ - int; Maximum percentage cpu use by miner.
- _block_reward_ - int; Base block reward for the next block to be mined.
- _block_target_ - int; The target number of seconds between blocks.
- _difficulty_ - unsigned int; Network difficulty (analogous to the strength of the network)
- _difficulty_top64_ - unsigned int; Most-significant 64 bits of the 128-bit network difficulty.
- _is_background_mining_enabled_ - boolean; States if the mining is running in background (`true`) or foreground (`false`).
- _pow_algorithm_ - string; The name of the proof-of-work algorithm currently being used by the miner.
- _speed_ - unsigned int; Mining power in hashes per seconds.
- _status_ - string; General RPC error code. "OK" means everything looks good. Any other value means that something went wrong.
- _threads_count_ - unsigned int; Number of running mining threads.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _wide_difficulty_ - string; Network difficulty (analogous to the strength of the network) as a hexadecimal string representing a 128-bit number.
- _out_peers_ - unsigned int; Max number of outgoing peers
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
Save the blockchain. The blockchain does not need saving and is always saved when modified, however it does a sync to flush the filesystem cache onto the disk for safety purposes against Operating System or Hardware crashes.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _tx_as_hex_ - string; Full transaction information as hexadecimal string.
- _do_not_relay_ - boolean; Stop relaying transaction to other nodes (default is `false`).
Outputs:
- _double_spend_ - boolean; Transaction is a double spend (`true`) or not (`false`).
- _fee_too_low_ - boolean; Fee is too low (`true`) or OK (`false`).
- _invalid_input_ - boolean; Input is invalid (`true`) or valid (`false`).
- _invalid_output_ - boolean; Output is invalid (`true`) or valid (`false`).
- _low_mixin_ - boolean; Mixin count is too low (`true`) or OK (`false`).
- _not_rct_ - boolean; Transaction is a standard ring transaction (`true`) or a ring confidential transaction (`false`).
- _not_relayed_ - boolean; Transaction was not relayed (`true`) or relayed (`false`).
- _overspend_ - boolean; Transaction uses more money than available (`true`) or not (`false`).
- _reason_ - string; Additional information. Currently empty or "Not relayed" if transaction was accepted but not relayed.
- _status_ - string; General RPC error code. "OK" means everything looks good. Any other value means that something went wrong.
- _too_big_ - boolean; Transaction size is too big (`true`) or OK (`false`).
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _limit_down_ - unsigned int; Download limit in kBytes per second
- _limit_up_ - unsigned int; Upload limit in kBytes per second
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
Categories are represented as a comma separated list of `<Category>:<level>` (similarly to syslog standard `<Facility>:<Severity-level>`), where:
- _Category_ is one of the following:
- _\_ * - All facilities
- _default_
- _net_
-_net.http_
-_net.p2p_
-_logging_
-_net.throttle_
-_blockchain.db_
-_blockchain.db.lmdb_
-_bcutil_
-_checkpoints_
-_net.dns_
-_net.dl_
-_i18n_
-_perf_
-_stacktrace_
-_updates_
-_account_
-_cn_
-_difficulty_
-_hardfork_
-_miner_
-_blockchain_
-_txpool_
- _cn.block_queue_
-_net.cn_
-_daemon_
-_debugtools.deserialize_
-_debugtools.objectsizes_
-_device.ledger_
- _wallet.gen_multisig_
-_multisig_
-_bulletproofs_
- _ringct_
- _daemon.rpc_
- _wallet.simplewallet_
- _WalletAPI_
- _wallet.ringdb_
- _wallet.wallet2_
- _wallet.rpc_
- _tests.core_
- _Level_ is one of the following:
- _FATAL_ - higher level
- _ERROR_
- _WARNING_
- _INFO_
- _DEBUG_
- _TRACE_ - lower level
A level automatically includes higher level.
By default, categories are set to `*:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO`.
Setting the categories to "" prevents any logs from being outputted.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good. Any other value means that something went wrong.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)