Memahami Bitcoin PoW (BTCW) Melalui Lensa Whitepapernya

ED
Senin, 15 April 2024 | 10:24 WIB
Bagikan
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='', maintainer='Jeff Garzik', maintainer_email='', url='http://www.github.com/jgarzik/python-bitcoinrpc', packages=['bitcoinrpc'], classifiers=[ 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', 'Operating System :: OS Independent' ] )

Halaman :

Komentar (0)

Tulis Komentar

Belum ada komentar untuk artikel ini. Jadilah yang pertama memberikan tanggapan!

VisiNews Club

Nikmati Berita Tanpa Batas & Benefit Eksklusif!

Dapatkan Kaos & Merchandise eksklusif setiap bulan dengan berlangganan Visi News.