Exemplo n.º 1
0
def btc_tx_fees(fast=False):
    return get_fee(fast)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
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())
Exemplo n.º 4
0
 def fetch_fee(self, fast):
     return 1 if self.test else network.get_fee(fast)
Exemplo n.º 5
0
 def get_action_fee(self):
     data = get_fee()
     return self._response(data=data)