aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-01-11 18:04:40 -0800
committerAlexander Blair <snipa@jagtech.io>2020-01-11 18:04:49 -0800
commitd0246957727e576b96236d42908f663755909ad3 (patch)
tree4189cb5f57df2b423868e8e573b0e26427e39941 /utils/python-rpc/framework
parentMerge pull request #6231 (diff)
parentwallet_rpc_server: new estimate_tx_size_and_weight RPC (diff)
downloadmonero-d0246957727e576b96236d42908f663755909ad3.tar.xz
Merge pull request #6105
0de8a0d3 wallet_rpc_server: new estimate_tx_size_and_weight RPC (moneromooo-monero)
Diffstat (limited to 'utils/python-rpc/framework')
-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 141e6595c..37a7f8975 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -1063,6 +1063,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',