aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework/wallet.py
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-06 14:18:54 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-06 15:18:21 +0000
commit0de8a0d37d80295ced83a2686b046de52fcbc4e3 (patch)
treecfeb58131f474ca50b2b742410091cdf392b8708 /utils/python-rpc/framework/wallet.py
parentMerge pull request #6088 (diff)
downloadmonero-0de8a0d37d80295ced83a2686b046de52fcbc4e3.tar.xz
wallet_rpc_server: new estimate_tx_size_and_weight RPC
Diffstat (limited to 'utils/python-rpc/framework/wallet.py')
-rw-r--r--utils/python-rpc/framework/wallet.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index 6a3fabdc9..b74709114 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -1062,6 +1062,20 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(stop_mining)
+ def estimate_tx_size_and_weight(self, n_inputs, n_outputs, ring_size = 0, rct = True):
+ estimate_tx_size_and_weight = {
+ 'method': 'estimate_tx_size_and_weight',
+ 'jsonrpc': '2.0',
+ 'params': {
+ 'n_inputs': n_inputs,
+ 'n_outputs': n_outputs,
+ 'ring_size': ring_size,
+ 'rct': rct,
+ },
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(estimate_tx_size_and_weight)
+
def get_version(self):
get_version = {
'method': 'get_version',