Bitcoin Forum
April 28, 2024, 04:23:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Looking for bitcoin scripting / Transaction automation resources.  (Read 122 times)
Eclipse33 (OP)
Copper Member
Sr. Member
****
Offline Offline

Activity: 934
Merit: 417


Eclipse© Cryptographic equipment


View Profile WWW
January 01, 2024, 06:53:28 PM
 #1

Hello Bitcointalk,

I am looking for resources relating to bitcoin scripting /transaction automation.

These would be shell scripts that can automatically execute bitcoin transactions.

I would like to learn more about how I can program bitcoin transactions so I can develop automated interaction with the blockchain.

Ive seen transactions on the blockchain where bitcoin is automated and it skips around the blockchain to new addresses automatically without a physical person signing those transactions and I want to figure out how these people are doing it. Is there a software for this automation or is it raw back-end shell scripting?

There are little to no You-tube videos on this topic or substantial resources I have been able to locate.  

Thank you in advance for your time in locating any resources and trying to help me.

Highest regards,

-Eclipse

- - - - - - - - - - - - - - - - - - - -

Resources so far:

https://en.bitcoin.it/wiki/Script

https://bitcoin-script-debugger.visvirial.com/

https://davidederosa.com/basic-blockchain-programming/bitcoin-script-language-part-one/

https://davidederosa.com/basic-blockchain-programming/bitcoin-script-language-part-two/

https://ide.bitauth.com/

https://developer.bitaps.com/

- - - - - - - - - - - - - - - - - - - -

███
███
███
███
███
███
███
███

███

███

███

███

███
.
Eclipse
)███
███
███
███
███
███
███
███

███

███

███

███

███
.
   MARKETPLACE
▀   TELEGRAM
   TWITTER
▀   INSTAGRAM
███
███
███
███
███
███
███
███

███

███

███

███

███
███▄▄███████▄▄
▄█████▀█▀█████▄
▄███████████████▄
█████████████████
███████████▀█████▄▄
██████████████████████▄
▀████████████████████▀██
██████▄█▄██████████▀█████
███▀▀████████▀█▀███████
██████████████▄███▄██████
████████████████▄███████
██████████▀███████████▀
████████████▀▀█████▀▀
| BTC |
| XMR |
ACCEPTED
███
███
███
███
███
███
███
███

███

███

███

███

███
[/quote]
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714278180
Hero Member
*
Offline Offline

Posts: 1714278180

View Profile Personal Message (Offline)

Ignore
1714278180
Reply with quote  #2

1714278180
Report to moderator
1714278180
Hero Member
*
Offline Offline

Posts: 1714278180

View Profile Personal Message (Offline)

Ignore
1714278180
Reply with quote  #2

1714278180
Report to moderator
digaran
Copper Member
Hero Member
*****
Offline Offline

Activity: 1330
Merit: 899

🖤😏


View Profile
January 01, 2024, 08:44:16 PM
 #2

So if I'm not mistaken, you wanna try looting puzzle 66 as soon as it moves, right? But what you are asking is kind of a hacking bot, so it's gonna cost you some money, besides why would any looter help the competition? 😉

🖤😏
seoincorporation
Legendary
*
Offline Offline

Activity: 3136
Merit: 2913


Top Crypto Casino


View Profile
January 04, 2024, 07:42:22 PM
Merited by ABCbits (2), n0nce (1)
 #3

Hello Eclipse.

Bitcoin scripting isn't hard at all, it's easy if we understand how to create/sign/send transactions with the bitcoin core.

Create a transaction:

Code:
bitcoin-cli createrawtransaction "[{\"txid\" : \"mytxid\",\"vout\":0}]" "{\"myaddress\":0.01}"
Sign the transaction, and get back the hex:

Code:
bitcoin-cli signrawtransactionwithwallet "myhex"
Send the transaction (signed hex):

Code:
bitcoin-cli sendrawtransaction "signedhex"

Source: https://developer.bitcoin.org/reference/rpc/sendrawtransaction.html

But to make the script you need to know the inputs for building the transaction, you can get that information from:

Code:
bitcoin-cli listunspent

Once you have the right inputs from the list unspent (txID and Vout) you already have all the data and the tools to create the script.

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
cmpeq
Copper Member
Jr. Member
*
Offline Offline

Activity: 33
Merit: 152


View Profile WWW
January 07, 2024, 09:04:24 AM
 #4

Check out BitIDE, it has a full IDE, visual debugger, and integration with local testnet:
https://bitcointalk.org/index.php?topic=5478422.0


If you want to learn more about bitcoin scripting, this video has a full tutorial (0-to-1):
https://www.youtube.com/watch?v=Mp3ldiz2KQ8

For some more complex operations/testnet integrations can checkout this demonstration of how to generate a pay to tap root script-path transaction:
https://www.youtube.com/watch?v=ixHVnvq4S7g



founder of QED
find me on twitter @cmpeq
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
January 08, 2024, 10:04:37 AM
Last edit: January 08, 2024, 12:25:12 PM by n0nce
 #5

Looking at the resources you've linked, I get the feeling you're mixing up 'scripting Bitcoin transactions' which means creating Bitcoin transactions programmatically and 'scripting Bitcoin' as in 'using the Bitcoin scripting language'.

You don't need to write any custom Bitcoin scripts (in the Bitcoin scripting language) in order to automate creation of transactions. Don't waste your time with the former; just use the bitcoin-cli as shown by seoincorporation and invoke it from your shell script or whatever programming language you prefer.

Alternatively, you could use the Bitcoin Core RPC interface through JSON-RPC calls from any programming language:
https://developer.bitcoin.org/reference/rpc/index.html

For createrawtransaction, it would be:
Code:
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"myid\",\"vout\":0}]", "[{\"address\":0.01}]"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/

Instead of curl, you can use your chosen programming language's preferred framework to build and send a POST request.

█▀▀▀











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