python – Bitcoin transaction view

0
22


Tell me how to interact with https://www.blockchain.com/.
1). I need to withdraw all transactions from the address, my code outputs transactions only for the last day?
2). How do I add additional transaction information (Sigscript, Witness)?

#!/usr/bin/env python
import bitcoin, sys

if len(sys.argv) < 2:
    ADDRESS = "1NDyJtNTjmwk5xPNhjgAMu4HDHigtobu1s"
elif len(sys.argv) < 3:
    ADDRESS = sys.argv[1]
else:
    print('Wallet address must be provided.')

def main():
    #bitcoin.allTransactions(ADDRESS)
    bitcoin.simpleTransactions(ADDRESS)
    
if __name__ == '__main__':
    main()



Source link

Leave a reply