aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-17 15:20:15 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-17 15:20:15 -0500
commit50c8147568eec4e1434b9b87cb7f9421920481bd (patch)
treeaca78e8ce0b6341fb0d0fa8d0f57853f43d15cac /utils/python-rpc
parentMerge pull request #5756 (diff)
parentfunctional_tests: add get_fee_estimate to blockchain test (diff)
downloadmonero-50c8147568eec4e1434b9b87cb7f9421920481bd.tar.xz
Merge pull request #5490
1a93aa4 functional_tests: add get_fee_estimate to blockchain test (moneromooo-monero)
Diffstat (limited to 'utils/python-rpc')
-rw-r--r--utils/python-rpc/framework/daemon.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index 20967030a..23d5ec0f0 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -333,3 +333,14 @@ class Daemon(object):
'id': '0'
}
return self.rpc.send_json_rpc_request(get_alternate_chains)
+
+ def get_fee_estimate(self, grace_blocks = 0):
+ get_fee_estimate = {
+ 'method': 'get_fee_estimate',
+ 'params': {
+ 'grace_blocks': grace_blocks,
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(get_fee_estimate)