aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-13 23:39:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-15 09:13:31 +0000
commit8fec0f98319d012c46d5e3bacb1dc65493662ef5 (patch)
tree833baeff3db1e16f13706a536bb287d9edfd57bb /utils
parentwallet_rpc_server: remove unused code (diff)
downloadmonero-8fec0f98319d012c46d5e3bacb1dc65493662ef5.tar.xz
functional_tests: add sweep_single test
Diffstat (limited to 'utils')
-rw-r--r--utils/python-rpc/framework/wallet.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index a80aaefec..29f97e982 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -184,6 +184,27 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(sweep_all)
+ def sweep_single(self, address = '', priority = 0, ring_size = 0, outputs = 1, unlock_time = 0, payment_id = '', get_tx_keys = False, key_image = "", do_not_relay = False, get_tx_hex = False, get_tx_metadata = False):
+ sweep_single = {
+ 'method': 'sweep_single',
+ 'params' : {
+ 'address' : address,
+ 'priority' : priority,
+ 'ring_size' : ring_size,
+ 'outputs' : outputs,
+ 'unlock_time' : unlock_time,
+ 'payment_id' : payment_id,
+ 'get_tx_keys' : get_tx_keys,
+ 'key_image' : key_image,
+ 'do_not_relay' : do_not_relay,
+ 'get_tx_hex' : get_tx_hex,
+ 'get_tx_metadata' : get_tx_metadata,
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(sweep_single)
+
def get_address(self, account_index = 0, subaddresses = []):
get_address = {
'method': 'get_address',