bit
bit copied to clipboard
Bitcoin made easy.
I'm trying to import a pem key: >`key = """-----BEGIN PRIVATE KEY-----` >`MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAxY6A0TAXwBeQ+k+L` >`JB4bgJWvWV4U0hTyryJA6+g7VVC26WN4VDNkSC4xuL0DA7c+kTNst2i5qSbYVgrk` >`RCo7iwIDAQABAkEAxB5nu0NnEIdUoWl90+kfnFL8tFc1jCjHkx0KHid5X4L2X7Ya` >`g62bbj3BBqId1vUUBltALN5h2PBCGvvuFYDooQIhAOsVaZUAw0KXijKeQV4Q5Xs5` >`erhPMFQIhqc/bff0gMrnAiEA1yJTFvWppYXrYI9NtxNzhSCa8oujsmwYaZRoyk8B` >`Ob0CIEnyX1beeY1N68vGWhuDxxu+1ep6BmK4l9quKiJQB99LAiAHZijRa1WQWdDE` >`m2ki2MpqU7rAiMjyhAE68F3CR4FVSQIgIggFS94m33R+n4mA25lJGyGRnV5iiynN` >`DLyEyGqhZOY=` >`-----END PRIVATE KEY-----"""` >`` >`key_obj = Key.from_pem( key )` But...
key.get_balance() returns string type while key.balance returns int.
this is my address 15vMMXtLJ8EHEv7rxjAfNuDem9UzHcTi6a then I suppose to send sample 3QiDnqgAyXTdagGeAjjLa6DPdTiSpznj41 it say  any help :(
Why speed of execution in console $ python -m timeit -s "from bit import Key;k=Key()" "k.address" faster than in IDLE? In IDLE 100000 take 10 sec. from bit import Key...
I have a transaction stuck in pergatory that'll never confirm, yet never seems to get out of mempool. I'd like to sweep that wallet, but (most) of the APIs don't...
At the moment, when using this library with coincurve package, an address or segwit address can be reused. How do I create more addresses for one private key? @ofek thank...
Hello, due to Taproot upgrade, we are able to write smart contract to a lesser extent on bitcoin. How do I create and manage UTXOs so that I wont lose...
Does bit allow for the creation of bech32 addresses?
@ofek Is it possible to pay fee from transaction and not the whole amount of available currency? For instance, when you send `0.01` BTC you pay a fee from your...
@ofek Imagine I have `1` USD on my account, which is something near `0.000059`. So `key.get_balance('btc')` equals to `0.000059`. Then, I am trying to send this amount using `leftover` like...