**height* - string; 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.
**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:
...
...
@@ -145,6 +165,7 @@ Inputs:
**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.
Outputs:
**fee* - Integer value of the fee charged for the txn.
...
...
@@ -224,6 +245,32 @@ Example (In this example, `sweep_dust` returns an error due to insufficient fund
"jsonrpc": "2.0"
}
### sweep_all
Send all unlocked balance to an address.
Inputs:
**address* - string; Destination public address.
**priority* - unsigned int; (Optional)
**mixin* - unsigned int; Number of outpouts from the blockchain to mix with (0 means no mixing).
**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_keys* - boolean; (Optional) Return the transaction key after sending.
<spanstyle="color: cyan;">[ monero->~ ]$</span> 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'
<spanstyle="color: cyan;">[ monero->~ ]$</span> 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":"9sS8eRU2b5ZbN2FPSrpkiab1bjbHE5XtL6Ti6We3Fhw5aQPudRfVVypjgzKDNkxtvTQZSPs122NKggb2mqcqkKSeMNVu59S","signature":"SigV1Xp61ZkGguxSCHpkYEVw9eaWfRfSoAf36PCsSCApx4DUrKWHEqM9CdNwjeuhJii6LHDVDFxvTPijFsj3L8NDQp1TV"}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"good": true
}
}
### export_key_images
Export a signed set of key images.
Inputs: *None*.
Outputs:
**signed_key_images* - array of signed key images: