Bitcoin Forum
April 30, 2024, 05:25:13 PM *
News: Latest Bitcoin Core release: 27.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 92 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?
1714497913
Hero Member
*
Offline Offline

Posts: 1714497913

View Profile Personal Message (Offline)

Ignore
1714497913
Reply with quote  #2

1714497913
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714497913
Hero Member
*
Offline Offline

Posts: 1714497913

View Profile Personal Message (Offline)

Ignore
1714497913
Reply with quote  #2

1714497913
Report to moderator
1714497913
Hero Member
*
Offline Offline

Posts: 1714497913

View Profile Personal Message (Offline)

Ignore
1714497913
Reply with quote  #2

1714497913
Report to moderator
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2955


Block halving is coming.


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.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6715


bitcoincleanup.com / bitmixlist.org


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

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


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/.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
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!