aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-02 12:31:08 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-17 11:38:26 +0000
commit170e51f0d9802ba5e317f74706d1bb2ef97779e6 (patch)
treeacadd6ec353b1eff9f8b38d90996566b57a967d9 /utils/python-rpc
parentfunctional_tests: add wallet attributes test (diff)
downloadmonero-170e51f0d9802ba5e317f74706d1bb2ef97779e6.tar.xz
functional_tests: add tx_notes tests
Diffstat (limited to 'utils/python-rpc')
-rw-r--r--utils/python-rpc/framework/wallet.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index 2c1f5389d..afc335f9b 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -911,6 +911,29 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(rescan_spent)
+ def set_tx_notes(self, txids = [], notes = []):
+ set_tx_notes = {
+ 'method': 'set_tx_notes',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'txids': txids,
+ 'notes': notes,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(set_tx_notes)
+
+ def get_tx_notes(self, txids = []):
+ get_tx_notes = {
+ 'method': 'get_tx_notes',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'txids': txids,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(get_tx_notes)
+
def set_attribute(self, key, value):
set_attribute = {
'method': 'set_attribute',