def btc_tx_fees(fast=False): return get_fee(fast)
def __init__(self): self.key = Key(config.private_key) self.address = self.key.address self.balance = self.key.get_balance("btc") self.fee = get_fee(fast=False)
key1 = PrivateKeyTestnet( 'cSES7oBGk4Cpf6eQrb8pzYWZxcYCSPhABK7uVELPbpfYwvW6rvSf') print('---------------Address Info---------------------') print(key.address) print(key1.address) print('---------------Before Transaction---------------------') print(key.get_balance('btc')) print(key1.get_balance('btc')) # print(key.unspents) print(key.get_transactions()) print(key1.get_transactions()) print(network.get_fee(fast=False)) print(network.get_fee_cached()) # print(key.get_unspents()) # print(key1.get_unspents()) # #sess = requests.session() # tx_hash = key1.send([(key.address, 0.0005, 'btc')]) # print(tx_hash) # print('---------------After Transaction---------------------') # print(key.get_balance('btc')) # print(key1.get_balance('btc')) # # print(key.unspents) # print(key.get_transactions())
def fetch_fee(self, fast): return 1 if self.test else network.get_fee(fast)
def get_action_fee(self): data = get_fee() return self._response(data=data)