aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework/wallet.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-29 19:23:42 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-17 11:38:19 +0000
commit43015bb7e34322df28dad8718c3d06bac8cacf1c (patch)
treed3c8081b5efa2fa9c9d8646420ccf7872e68e9db /utils/python-rpc/framework/wallet.py
parentfunctional_tests: add missing sweep_dust parameters, and test it (diff)
downloadmonero-43015bb7e34322df28dad8718c3d06bac8cacf1c.tar.xz
functional_tests: add get_transfers test
Diffstat (limited to '')
-rw-r--r--utils/python-rpc/framework/wallet.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index fae6082d7..9090c01b8 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -91,6 +91,17 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(get_transfer_by_txid)
+ def get_payments(self, payment_id):
+ get_payments = {
+ 'method': 'get_payments',
+ 'params': {
+ 'payment_id': payment_id,
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(get_payments)
+
def get_bulk_payments(self, payment_ids = [], min_block_height = 0):
get_bulk_payments = {
'method': 'get_bulk_payments',