aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework/wallet.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-01 12:29:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-17 11:38:23 +0000
commitcc4be4fa15eba582cc6ab529bd0215e642205ad4 (patch)
tree5f0a42d25ba81d8f909650b3e81b7f80281803c9 /utils/python-rpc/framework/wallet.py
parentfunctional_tests: add address book tests (diff)
downloadmonero-cc4be4fa15eba582cc6ab529bd0215e642205ad4.tar.xz
wallet: add edit_address_book RPC
Diffstat (limited to '')
-rw-r--r--utils/python-rpc/framework/wallet.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index c67fefc87..e42b99239 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -903,6 +903,23 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(add_address_book)
+ def edit_address_book(self, index, address = None, payment_id = None, description = None):
+ edit_address_book = {
+ 'method': 'edit_address_book',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'index': index,
+ 'set_address': address != None,
+ 'address': address or '',
+ 'set_payment_id': payment_id != None,
+ 'payment_id': payment_id or '',
+ 'set_description': description != None,
+ 'description': description or '',
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(edit_address_book)
+
def get_address_book(self, entries = []):
get_address_book = {
'method': 'get_address_book',