Bitcoin Forum
October 08, 2024, 06:39:11 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Which Python Package for automating BTC-tx? [required: OP_RETURN and Testnet]  (Read 103 times)
milan2sky (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 4


View Profile
June 17, 2021, 05:19:36 PM
Merited by ABCbits (2)
 #1

Hello Guys,

I need a (good Wink) Python package for automating BTC transactions...
I need support for OP_RETURN and BitcoinTestnet...

I would also appreciate a good Documentation Cheesy

Can you recommend me some something?
BitMaxz
Legendary
*
Offline Offline

Activity: 3402
Merit: 3143

Is the $100k BTC possible?


View Profile WWW
June 17, 2021, 05:57:32 PM
 #2

Try to check this one below

- https://github.com/coinspark/python-OP_RETURN/blob/master/send-OP_RETURN.py

I just found it when searching on the forum here https://bitcointalk.org/index.php?topic=970295.msg10594340#msg10594340

I don't know if you can automate it but it's a python package.

BTC Road to $80k...
NotATether
Legendary
*
Offline Offline

Activity: 1750
Merit: 7313

In memory of o_e_l_e_o


View Profile WWW
June 17, 2021, 08:19:43 PM
Merited by ABCbits (1)
 #3

The ubiquitous bitcoin PyPI package can work with OP_RETURN using its usual transaction signing and broadcasting methods since it can process raw transactions. If you make the raw transaction with your OP_RETURN data you can then manipulate it using this package.

Testnet support is provided by importing the module and creating a class instance using Bitcoin(testnet=True). I must warn you though, this package is somewhat old, even its immediate successor fork hasn't been updated since 2018, but it looks like this is the most recent decent package you'll find.  Undecided
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4419


Crypto Swap Exchange


View Profile
June 17, 2021, 10:34:04 PM
 #4

Try to check this one below

- https://github.com/coinspark/python-OP_RETURN/blob/master/send-OP_RETURN.py

I just found it when searching on the forum here https://bitcointalk.org/index.php?topic=970295.msg10594340#msg10594340

I don't know if you can automate it but it's a python package.
If my memory doesn't fail me, it isn't compatible with newer version of Bitcoin Core and OP seems to want to avoid using Core as well.

This module will work if OP can get the TXID and index for the raw transaction: https://pypi.org/project/bitcoin-utils/.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!