Memahami Bitcoin PoW (BTCW) Melalui Lensa Whitepapernya
while 1: txid = rpc_connection.sendtoaddress('PUT YOUR LEGACY BTC ADDRESS STARTING WITH A 1 HERE', 0.00001) print(txid)
try: # At some point, we will send and tx will not hit mem pool and we need to abandon tx to get balance back. # keep doing this to keep it simple. It only abandons if it needs to. commands = [["abandontransaction", txid]] resp = rpc_connection.batch_(commands) except Exception as err: # this is good, keep sending txs continue
print("abandontransaction was successful") break # abandontransaction happened, we are done till next block
time.sleep(60)
setup.py
#!/usr/bin/env python
from distutils.core import setup
setup(
name='python-bitcoinrpc',
version='1.0',
description='Enhanced version of python-jsonrpc for use with Bitcoin',
long_description=open('README.rst').read(),
author='Jeff Garzik',
author_email='
Berita Terkait
Komentar (0)
Tulis Komentar
Belum ada komentar untuk artikel ini. Jadilah yang pertama memberikan tanggapan!