This is a list of the monero-wallet-rpc calls, their inputs and outputs, and examples of each. The program monero-wallet-rpc replaced the rpc interface that was in simplewallet and then monero-wallet-cli.
All monero-wallet-rpc methods use the same JSON RPC interface. For example:
- _account_index_ - unsigned int; Return balance for this account.
- _address_indices_ - array of unsigned int; (Optional) Return balance detail for those subaddresses.
Outputs:
-_balance_ - unsigned int; The total balance of the current monero-wallet-rpc in session.
- _unlocked_balance_ - unsigned int; Unlocked funds are those funds that are sufficiently deep enough in the Monero blockchain to be considered safe to spend.
- _multisig_import_needed_ - boolean; True if importing multisig data is needed for returning a correct balance.
- _per_subaddress_ - array of subaddress information; Balance information for each subaddress in an account.
- _address_index_ - unsigned int; Index of the subaddress in the account.
-_address_ - string; Address at this index. Base58 representation of the public keys.
-_balance_ - unsigned int; Balance for the subaddress (locked or unlocked).
- _unlocked_balance_ - unsigned int; Unlocked balance for the subaddress.
-_label_ - string; Label for the subaddress.
- _num_unspent_outputs_ - unsigned int; Number of unspent outputs available for the subaddress.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_balance","params":{"account_index":0,"address_indices":[0,1]}}' -H 'Content-Type: application/json'
-_height_ - unsigned int; The current monero-wallet-rpc's blockchain height. If the wallet has been offline for a long time, it may need to catch up with the daemon.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_height"}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"height": 145545
}
}
```
---
### **transfer**
Send monero to a number of recipients.
Alias: _None_.
Inputs:
-_destinations_ - array of destinations to receive XMR:
-_amount_ - unsigned int; Amount to send to each destination, in atomic units.
-_address_ - string; Destination public address.
- _account_index_ - unsigned int; (Optional) Transfer from this account index. (Defaults to 0)
- _subaddr_indices_ - array of unsigned int; (Optional) Transfer from this set of subaddresses. (Defaults to 0)
-_priority_ - unsigned int; Set a priority for the transaction. Accepted Values are: 0-3 for: default, unimportant, normal, elevated, priority.
-_mixin_ - unsigned int; Number of outputs from the blockchain to mix with (0 means no mixing).
- _ring_size_ - unsigned int; Number of outputs to mix in the transaction (this output + N decoys from the blockchain).
- _unlock_time_ - unsigned int; Number of blocks before the monero can be spent (0 to not add a lock).
- _payment_id_ - string; (Optional) Random 32-byte/64-character hex string to identify a transaction.
- _get_tx_key_ - boolean; (Optional) Return the transaction key after sending.
- _do_not_relay_ - boolean; (Optional) If true, the newly created transaction will not be relayed to the monero network. (Defaults to false)
- _get_tx_hex_ - boolean; Return the transaction as hex string after sending (Defaults to false)
- _get_tx_metadata_ - boolean; Return the metadata needed to relay the transaction. (Defaults to false)
Outputs:
-_amount_ - Amount transferred for the transaction.
-_fee_ - Integer value of the fee charged for the txn.
- _multisig_txset_ - Set of multisig transactions in the process of being signed (empty for non-multisig).
- _tx_blob_ - Raw transaction represented as hex string, if get_tx_hex is true.
- _tx_hash_ - String for the publically searchable transaction hash.
- _tx_key_ - String for the transaction key if get_tx_key is true, otherwise, blank string.
- _tx_metadata_ - Set of transaction metadata needed to relay this transfer later, if get_tx_metadata is true.
- _unsigned_txset_ - String. Set of unsigned tx for cold-signing purposes.
Get a list of incoming payments using a given payment id, or a list of payments ids, from a given height. This method is the preferred method over `get_payments`because it has the same functionality but is more extendable. Either is fine for looking up transactions by a single payment ID.
Alias: _None_.
Inputs:
- _payment_ids_ - array of: string; Payment IDs used to find the payments (16 characters hex).
- _min_block_height_ - unsigned int; The block height at which to start looking for payments.
Outputs:
-_payments_ - list of:
- _payment_id_ - string; Payment ID matching one of the input IDs.
- _tx_hash_ - string; Transaction hash used as the transaction ID.
-_amount_ - unsigned int; Amount for this payment.
- _block_height_ - unsigned int; Height of the block that first confirmed this payment.
- _unlock_time_ - unsigned int; Time (in block height) until this payment is safe to spend.
- _subaddr_index_ - subaddress index:
-_major_ - unsigned int; Account index for the subaddress.
-_minor_ - unsigned int; Index of the subaddress in the account.
-_address_ - string; Address receiving the payment; Base58 representation of the public keys.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_bulk_payments","params":{"payment_ids":["60900e5603bf96e3"],"min_block_height":"120000"}}' -H 'Content-Type: application/json'
Return a list of incoming transfers to the wallet.
Inputs:
- _transfer_type_ - string; "all": all the transfers, "available": only transfers which are not yet spent, OR "unavailable": only transfers which are already spent.
- _account_index_ - unsigned int; (Optional) Return transfers for this account. (defaults to 0)
- _subaddr_indices_ - array of unsigned int; (Optional) Return transfers sent to these subaddresses.
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"stop_wallet"}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
}
}
```
---
### **rescan_blockchain**
Rescan the blockchain from scratch, losing any information which can not be recovered from the blockchain itself.
This includes destination addresses, tx secret keys, tx notes, etc.
Alias: _None_.
Inputs: _None_.
Outputs: _None_.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"rescan_blockchain"}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
}
}
```
---
### **set_tx_notes**
Set arbitrary string notes for transactions.
Alias: _None_.
Inputs:
-_txids_ - array of string; transaction ids
-_notes_ - array of string; notes for the transactions
Outputs: _None_.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"set_tx_notes","params":{"txids":["3292e83ad28fc1cc7bc26dbd38862308f4588680fbf93eae3e803cddd1bd614f"],"notes":["This is an example"]}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
}
}
```
---
### **get_tx_notes**
Get string notes for transactions.
Alias: _None_.
Inputs:
-_txids_ - array of string; transaction ids
Outputs:
-_notes_ - array of string; notes for the transactions
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_tx_notes","params":{"txids":["3292e83ad28fc1cc7bc26dbd38862308f4588680fbf93eae3e803cddd1bd614f"]}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"notes": ["This is an example"]
}
}
```
---
### **set_attribute**
Set arbitrary attribute.
Alias: _None_.
Inputs:
-_key_ - string; attribute name
-_value_ - string; attribute value
Outputs: _None_.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"set_attribute","params":{"key":"my_attribute","value":"my_value"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
}
}
```
---
### **get_attribute**
Get attribute value by name.
Alias: _None_.
Inputs:
-_key_ - string; attribute name
Outputs:
-_value_ - string; attribute value
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_attribute","params":{"key":"my_attribute"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"value": "my_value"
}
}
```
---
### **get_tx_key**
Get transaction secret key from transaction id.
Alias: _None_.
Inputs:
-_txid_ - string; transaction id.
Outputs:
- _tx_key_ - string; transaction secret key.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_tx_key","params":{"txid":"19d5089f9469db3d90aca9024dfcb17ce94b948300101c8345a5e9f7257353be"}}' -H 'Content-Type: application/json'
Check a transaction in the blockchain with its secret key.
Alias: _None_.
Inputs:
-_txid_ - string; transaction id.
- _tx_key_ - string; transaction secret key.
-_address_ - string; destination public address of the transaction.
Outputs:
-_confirmations_ - unsigned int; Number of block mined after the one with the transaction.
- _in_pool_ - boolean; States if the transaction is still in pool or has been added to a block.
-_received_ - unsigned int; Amount of the transaction.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"check_tx_key","params":{"txid":"19d5089f9469db3d90aca9024dfcb17ce94b948300101c8345a5e9f7257353be","tx_key":"feba662cf8fb6d0d0da18fc9b70ab28e01cc76311278fdd7fe7ab16360762b06","address":"7BnERTpvL5MbCLtj5n9No7J5oE5hHiB3tVCK5cjSvCsYWD2WRJLFuWeKTLiXo5QJqt2ZwUaLy2Vh1Ad51K7FNgqcHgjW85o"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"confirmations": 0,
"in_pool": false,
"received": 1000000000000
}
}
```
---
### **get_tx_proof**
Get transaction signature to prove it.
Alias: _None_.
Inputs:
-_txid_ - string; transaction id.
-_address_ - string; destination public address of the transaction.
-_message_ - string; (Optional) add a message to the signature to further authenticate the prooving process.
Outputs:
-_signature_ - string; transaction signature.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_tx_proof","params":{"txid":"19d5089f9469db3d90aca9024dfcb17ce94b948300101c8345a5e9f7257353be","address":"7BnERTpvL5MbCLtj5n9No7J5oE5hHiB3tVCK5cjSvCsYWD2WRJLFuWeKTLiXo5QJqt2ZwUaLy2Vh1Ad51K7FNgqcHgjW85o","message":"this is my transaction"}}' -H 'Content-Type: application/json'
-_address_ - string; destination public address of the transaction.
-_message_ - string; (Optional) Should be the same message used in `get_tx_proof`.
-_signature_ - string; transaction signature to confirm.
Outputs:
-_confirmations_ - unsigned int; Number of block mined after the one with the transaction.
-_good_ - boolean; States if the inputs proves the transaction.
- _in_pool_ - boolean; States if the transaction is still in pool or has been added to a block.
-_received_ - unsigned int; Amount of the transaction.
In the example below, the transaction has been proven:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"check_tx_proof","params":{"txid":"19d5089f9469db3d90aca9024dfcb17ce94b948300101c8345a5e9f7257353be","address":"7BnERTpvL5MbCLtj5n9No7J5oE5hHiB3tVCK5cjSvCsYWD2WRJLFuWeKTLiXo5QJqt2ZwUaLy2Vh1Ad51K7FNgqcHgjW85o","message":"this is my transaction","signature":"InProofV13vqBCT6dpSAXkypZmSEMPGVnNRFDX2vscUYeVS4WnSVnV5BwLs31T9q6Etfj9Wts6tAxSAS4gkMeSYzzLS7Gt4vvCSQRh9niGJMUDJsB5hTzb2XJiCkUzWkkcjLFBBRVD5QZ"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"confirmations": 482,
"good": true,
"in_pool": false,
"received": 1000000000000
}
}
```
In the example below, the wrong message is used, avoiding the transaction to be proved:
Generate a signature to prove a spend. Unlike proving a transaction, it does not requires the destination public address.
Alias: _None_.
Inputs:
-_txid_ - string; transaction id.
-_message_ - string; (Optional) add a message to the signature to further authenticate the prooving process.
Outputs:
-_signature_ - string; spend signature.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_spend_proof","params":{"txid":"19d5089f9469db3d90aca9024dfcb17ce94b948300101c8345a5e9f7257353be","message":"this is my transaction"}}' -H 'Content-Type: application/json'
Prove a spend using a signature. Unlike proving a transaction, it does not requires the destination public address.
Alias: _None_.
Inputs:
-_txid_ - string; transaction id.
-_message_ - string; (Optional) Should be the same message used in `get_spend_proof`.
-_signature_ - string; spend signature to confirm.
Outputs:
-_good_ - boolean; States if the inputs proves the spend.
In the example below, the spend has been proven:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"check_spend_proof","params":{"txid":"19d5089f9469db3d90aca9024dfcb17ce94b948300101c8345a5e9f7257353be","message":"this is my transaction","signature":"SpendProofV1aSh8Todhk54736iXgV6vJAFP7egxByuMWZeyNDaN2JY737S95X5zz5mNMQSuCNSLjjhi5HJCsndpNWSNVsuThxwv285qy1KkUrLFRkxMSCjfL6bbycYN33ScZ5UB4Fzseceo1ndpL393T1q638VmcU3a56dhNHF1RPZFiGPS61FA78nXFSqE9uoKCCoHkEz83M1dQVhxZV5CEPF2P6VioGTKgprLCH9vvj9k1ivd4SX19L2VSMc3zD1u3mkR24ioETvxBoLeBSpxMoikyZ6inhuPm8yYo9YWyFtQK4XYfAV9mJ9knz5fUPXR8vvh7KJCAg4dqeJXTVb4mbMzYtsSZXHd6ouWoyCd6qMALdW8pKhgMCHcVYMWp9X9WHZuCo9rsRjRpg15sJUw7oJg1JoGiVgj8P4JeGDjnZHnmLVa5bpJhVCbMhyM7JLXNQJzFWTGC27TQBbthxCfQaKdusYnvZnKPDJWSeceYEFzepUnsWhQtyhbb73FzqgWC4eKEFKAZJqT2LuuSoxmihJ9acnFK7Ze23KTVYgDyMKY61VXADxmSrBvwUtxCaW4nQtnbMxiPMNnDMzeixqsFMBtN72j5UqhiLRY99k6SE7Qf5f29haNSBNSXCFFHChPKNTwJrehkofBdKUhh2VGPqZDNoefWUwfudeu83t85bmjv8Q3LrQSkFgFjRT5tLo8TMawNXoZCrQpyZrEvnodMDDUUNf3NL7rxyv3gM1KrTWjYaWXFU2RAsFee2Q2MTwUW7hR25cJvSFuB1BX2bfkoCbiMk923tHZGU2g7rSKF1GDDkXAc1EvFFD4iGbh1Q5t6hPRhBV8PEncdcCWGq5uAL5D4Bjr6VXG8uNeCy5oYWNgbZ5JRSfm7QEhPv8Fy9AKMgmCxDGMF9dVEaU6tw2BAnJavQdfrxChbDBeQXzCbCfep6oei6n2LZdE5Q84wp7eoQFE5Cwuo23tHkbJCaw2njFi3WGBbA7uGZaGHJPyB2rofTWBiSUXZnP2hiE9bjJghAcDm1M4LVLfWvhZmFEnyeru3VWMETnetz1BYLUC5MJGFXuhnHwWh7F6r74FDyhdswYop4eWPbyrXMXmUQEccTGd2NaT8g2VHADZ76gMC6BjWESvcnz2D4n8XwdmM7ZQ1jFwhuXrBfrb1dwRasyXxxHMGAC2onatNiExyeQ9G1W5LwqNLAh9hvcaNTGaYKYXoceVzLkgm6e5WMkLsCwuZXvB"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"good": true
}
}
```
In the example below, the wrong message is used, avoiding the spend to be proved:
Proves a wallet has a disposable reserve using a signature.
Alias: _None_.
Inputs:
-_address_ - string; Public address of the wallet.
-_message_ - string; (Optional) Should be the same message used in `get_reserve_proof`.
-_signature_ - string; reserve signature to confirm.
Outputs:
-_good_ - boolean; States if the inputs proves the reserve.
In the example below, the reserve has been proven:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"check_reserve_proof","params":{"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt","signature":"ReserveProofV11BZ23sBt9sZJeGccf84mzyAmNCP3KzYbE1111112VKmH111118NfCYJQjZ6c46gT2kXgcHCaSSZeL8sRdzqjqx7i1e7FQfQGu2o113UYFVdwzHQi3iENDPa76Kn1BvywbKz3bMkXdZkBEEhBSF4kjjGaiMJ1ucKb6wvMVC4A8sA4nZEdL2Mk3wBucJCYTZwKqA8i1M113kqakDkG25FrjiDqdQTCYz2wDBmfKxF3eQiV5FWzZ6HmAyxnqTWUiMWukP9A3Edy3ZXqjP1b23dhz7Mbj39bBxe3ZeDNu9HnTSqYvHNRyqCkeUMJpHyQweqjGUJ1DSfFYr33J1E7MkhMnEi1o7trqWjVix32XLetYfePG73yvHbS24837L7Q64i5n1LSpd9yMiQZ3Dyaysi5y6jPx7TpAvnSqBFtuCciKoNzaXoA3dqt9cuVFZTXzdXKqdt3cXcVJMNxY8RvKPVQHhUur94Lpo1nSpxf7BN5a5rHrbZFqoZszsZmiWikYPkLX72XUdw6NWjLrTBxSy7KuPYH86c6udPEXLo2xgN6XHMBMBJzt8FqqK7EcpNUBkuHm2AtpGkf9CABY3oSjDQoRF5n4vNLd3qUaxNsG4XJ12L9gJ7GrK273BxkfEA8fDdxPrb1gpespbgEnCTuZHqj1A"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"good": true,
"spent": 0,
"total": 100000000000
}
}
```
In the example below, all wallet reserve has been proven:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"check_reserve_proof","params":{"address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt","message":"I have 10 at least","signature":"...signature..."}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"good": true,
"spent": 0,
"total": 164113855714662789
}
}
```
In the example below, the wrong message is used, avoiding the reserve to be proved:
-_in_ - boolean; (Optional) Include incoming transfers.
-_out_ - boolean; (Optional) Include outgoing transfers.
-_pending_ - boolean; (Optional) Include pending transfers.
-_failed_ - boolean; (Optional) Include failed transfers.
-_pool_ - boolean; (Optional) Include transfers from the daemon's transaction pool.
- _filter_by_height_ - boolean; (Optional) Filter transfers by block height.
- _min_height_ - unsigned int; (Optional) Minimum block height to scan for transfers, if filtering by height is enabled.
- _max_height_ - unsigned int; (Opional) Maximum block height to scan for transfers, if filtering by height is enabled (defaults to max block height).
- _account_index_ - unsigned int; (Optional) Index of the account to query for transfers. (defaults to 0)
- _subaddr_indices_ - array of unsigned int; (Optional) List of subaddress indices to query for transfers. (defaults to 0)
Outputs:
-_in_ array of transfers:
-_address_ - string; Public address of the transfer.
-_amount_ - unsigned int; Amount transferred.
-_confirmations_ - unsigned int; Number of block mined since the block containing this transaction (or block height at which the transaction should be added to a block if not yet confirmed).
- _double_spend_seen_ - boolean; True if the key image(s) for the transfer have been seen before.
-_fee_ - unsigned int; Transaction fee for this transfer.
-_height_ - unsigned int; Height of the first block that confirmed this transfer (0 if not mined yet).
-_note_ - string; Note about this transfer.
- _payment_id_ - string; Payment ID for this transfer.
- _subaddr_index_ - JSON object containing the major & minor subaddress index:
-_major_ - unsigned int; Account index for the subaddress.
-_minor_ - unsigned int; Index of the subaddress under the account.
- _suggested_confirmations_threshold_ - unsigned int; Estimation of the confirmations needed for the transaction to be included in a block.
-_timestamp_ - unsigned int; POSIX timestamp for when this transfer was first confirmed in a block (or timestamp submission if not mined yet).
-_txid_ - string; Transaction ID for this transfer.
-_type_ - string; Transfer type: "in"
- _unlock_time_ - unsigned int; Number of blocks until transfer is safely spendable.
-_out_ array of transfers (see above).
-_pending_ array of transfers (see above).
-_failed_ array of transfers (see above).
-_pool_ array of transfers (see above).
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_transfers","params":{"in":true,"account_index":1}}' -H 'Content-Type: application/json'
-_address_ - string; Address that transferred the funds. Base58 representation of the public keys.
-_amount_ - unsigned int; Amount of this transfer.
-_confirmations_ - unsigned int; Number of block mined since the block containing this transaction (or block height at which the transaction should be added to a block if not yet confirmed).
-_destinations_ - array of JSON objects containing transfer destinations:
-_amount_ - unsigned int; Amount transferred to this destination.
-_address_ - string; Address for this destination. Base58 representation of the public keys.
- _double_spend_seen_ - boolean; True if the key image(s) for the transfer have been seen before.
-_fee_ - unsigned int; Transaction fee for this transfer.
-_height_ - unsigned int; Height of the first block that confirmed this transfer.
-_note_ - string; Note about this transfer.
- _payment_id_ - string; Payment ID for this transfer.
- _subaddr_index_ - JSON object containing the major & minor subaddress index:
-_major_ - unsigned int; Account index for the subaddress.
-_minor_ - unsigned int; Index of the subaddress under the account.
- _suggested_confirmations_threshold_ - unsigned int; Estimation of the confirmations needed for the transaction to be included in a block.
-_timestamp_ - unsigned int; POSIX timestamp for the block that confirmed this transfer (or timestamp submission if not mined yet).
-_txid_ - string; Transaction ID of this transfer (same as input TXID).
-_type_ - string; Type of transfer, one of the following: "in", "out", "pending", "failed", "pool"
- _unlock_time_ - unsigned int; Number of blocks until transfer is safely spendable.
Example:
```
$ curl -X POST http://localhost:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_transfer_by_txid","params":{"txid":"c36258a276018c3a4bc1f195a7fb530f50cd63a4fa765fb7c6f7f49fc051762a"}}' -H 'Content-Type: application/json'
-_signature_ - string; Signature generated against the "data" and the account public address.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"sign","params":{"data":"This is sample data to be signed"}}' -H 'Content-Type: application/json'
-_address_ - string; Public address of the wallet used to `sign` the data.
-_signature_ - string; signature generated by `sign` method.
Outputs:
-_good_ - boolean;
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"verify","params":{"data":"This is sample data to be signed","address":"55LTR8KniP4LQGJSPtbYDacR7dz8RBFnsfAKMaMuwUNYX6aQbBcovzDPyrQF9KXF9tVU6Xk3K8no1BywnJX6GvZX8yJsXvt","signature":"SigV14K6G151gycjiGxjQ74tKX6A2LwwghvuHjcDeuRFQio5LS6Gb27BNxjYQY1dPuUvXkEbGQUkiHSVLPj4nJAHRrrw3"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"good": true
}
}
```
---
### **export_outputs**
Export all outputs in hex format.
Alias: _None_.
Inputs: _None_.
Outputs:
- _outputs_data_hex_ - string; wallet outputs in hex format.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"export_outputs"}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"outputs_data_hex": "...outputs..."
}
}
```
---
### **import_outputs**
Import outputs in hex format.
Alias: _None_.
Inputs:
- _outputs_data_hex_ - string; wallet outputs in hex format.
Outputs:
- _num_imported_ - unsigned int; number of outputs imported.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"import_outputs","params":{"outputs_data_hex":"...outputs..."}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"num_imported": 6400
}
}
```
---
### **export_key_images**
Export a signed set of key images.
Alias: _None_.
Inputs: _None_.
Outputs:
- _signed_key_images_ - array of signed key images:
- _key_image_ - string;
-_signature_ - string;
Example:
```
$ curl -X POST http://localhost:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"export_key_images"}' -H 'Content-Type: application/json'