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 15:52:03 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-17 11:38:24 +0000
commit4ba8254a1d02fe81c2014ccba4717d16cbcf1ec2 (patch)
treed7d6eae24525e9c717931ab1b4fa1ca7b4553546 /utils/python-rpc/framework/wallet.py
parentwallet: add edit_address_book RPC (diff)
downloadmonero-4ba8254a1d02fe81c2014ccba4717d16cbcf1ec2.tar.xz
functional_tests: add monero: URI tests
Diffstat (limited to 'utils/python-rpc/framework/wallet.py')
-rw-r--r--utils/python-rpc/framework/wallet.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index e42b99239..741569858 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -890,6 +890,32 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(set_account_tag_description)
+ def make_uri(self, address = '', payment_id = '', amount = 0, tx_description = '', recipient_name = ''):
+ make_uri = {
+ 'method': 'make_uri',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'address': address,
+ 'payment_id': payment_id,
+ 'amount': amount,
+ 'tx_description': tx_description,
+ 'recipient_name': recipient_name,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(make_uri)
+
+ def parse_uri(self, uri):
+ parse_uri = {
+ 'method': 'parse_uri',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'uri': uri,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(parse_uri)
+
def add_address_book(self, address = '', payment_id = '', description = ''):
add_address_book = {
'method': 'add_address_book',