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 10:51:28 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-17 11:38:22 +0000
commit4ff40d8d9ae00784034035811728c14fefcf4a23 (patch)
tree15b017a32bac35ffcae118ece005487f696eef19 /utils/python-rpc/framework/wallet.py
parentfunctional_tests: add wallet password change, store and tag tests (diff)
downloadmonero-4ff40d8d9ae00784034035811728c14fefcf4a23.tar.xz
functional_tests: add address book tests
Diffstat (limited to 'utils/python-rpc/framework/wallet.py')
-rw-r--r--utils/python-rpc/framework/wallet.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index 7aabb5f29..c67fefc87 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -890,6 +890,41 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(set_account_tag_description)
+ def add_address_book(self, address = '', payment_id = '', description = ''):
+ add_address_book = {
+ 'method': 'add_address_book',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'address': address,
+ 'payment_id': payment_id,
+ 'description': description,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(add_address_book)
+
+ def get_address_book(self, entries = []):
+ get_address_book = {
+ 'method': 'get_address_book',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'entries': entries,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(get_address_book)
+
+ def delete_address_book(self, index):
+ delete_address_book = {
+ 'method': 'delete_address_book',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'index': index,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(delete_address_book)
+
def start_mining(self, threads_count, do_background_mining = False, ignore_battery = False):
start_mining = {
'method': 'start_mining',