Bitcoin Forum
July 16, 2024, 01:05:01 AM *
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 96 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: 3318
Merit: 3050


BTC price road to $80k


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: 1666
Merit: 7020


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

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

Activity: 2982
Merit: 4193



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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


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