Bitcoin Forum
November 12, 2026, 04:12:12 PM *
News: Latest Bitcoin Core release: 32.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: .  (Read 167 times)
Eclipse33 (OP)
Copper Member
Member
**
Offline

Activity: 98
Merit: 464


.


View Profile WWW
⇾ .
January 01, 2024, 06:53:28 PM
Last edit: March 19, 2025, 06:00:43 PM by Eclipse33
 #1

.

404
digaran
Copper Member
Hero Member
*****
Offline

Activity: 1330
Merit: 905

🖤😏


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

Activity: 3752
Merit: 3405


AnonChange.com


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.

▄███████████████████████▄
█████████████████████████
██████████████▀▀▀████████
██████████▀▀██████▀██████
████▀▀███▄▄███▄████▀█▀▀██
██▌█████▀▀███████████████
██▌█████▄▄▄████▀▀█████▐██
██████████████▄▄██████▐██
██▄▄█▄████▀███▀▀██▄▄█████
██████▄██████▄▄██████████
████████▄▄▄██████████████
█████████████████████████
▀███████████████████████▀
 
 ANONCHANGE 
████
██
██
██
██
██
██
██
██
██
██
██
████
████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
IIIINSTANT CRYPTO SWAPS
  XMR     BTC     ETH     LTC     SOL     USDT     USDC     DAI  


████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
████
██
██
██
██
██
██
██
██
██
██
██
████
████
██
██
██
██
██
██
██
██
██
██
██
████
████
██
██
██
██
██
██
██
██
██
██
██
████
cmpeq
Copper Member
Jr. Member
*
Offline

Activity: 33
Merit: 171


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

Activity: 994
Merit: 6089


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.

 
 b1exch.to 
  ETH      DAI   
  BTC      LTC   
  USDT     XMR    
.███████████▄▀▄▀
█████████▄█▄▀
███████████
███████▄█▀
█▀█
▄▄▀░░██▄▄
▄▀██▄▀██████▄
███▄▀░▄████████
██████████░██████
█░████░██████████
█░█░█░████░██████
█░█░█░██░██████
▀▀▀▄█▄████▀▀▀
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!