mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	wallet_rpc_server: new estimate_tx_size_and_weight RPC
This commit is contained in:
		
							parent
							
								
									a48ef0a65a
								
							
						
					
					
						commit
						0de8a0d37d
					
				
					 6 changed files with 86 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue