Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
WanderingPhilospher
on 01/08/2024, 16:04:02 UTC
Thoughts, comments, questions?

Could it be done this way?

Code:
from bitcoin import *

# Example inputs
txid = 'your_input_txid'  # Replace with your input transaction ID
vout = 0  # Replace with the correct output index
scriptPubKey = 'your_scriptPubKey'  # Replace with your scriptPubKey
amount = 0.01  # Replace with the amount in BTC from your input transaction
destination_address = 'your_destination_address'  # Replace with the recipient's Bitcoin address
privkey = 'your_private_key'  # Replace with your private key

# Fee calculation
fee_rate = 8  # sats/vByte
tx_size = 200  # estimated size in bytes
fee = (fee_rate * tx_size) / 1e8  # Convert fee from sats to BTC

# Create transaction inputs and outputs
inputs = [{'txid': txid, 'vout': vout, 'scriptPubKey': scriptPubKey, 'amount': amount}]
outputs = {destination_address: amount - fee}

# Create and sign the raw transaction
raw_tx = mktx(inputs, outputs)
signed_tx = sign(raw_tx, 0, privkey)

# Output the signed transaction hex
print(signed_tx)


If you don't send them an email, how long would it take?



Mother Mara !

Quote
Is my transaction guaranteed to get mined by Marathon?

No. Once accepted by Marathon, your transaction will compete with other Bitcoin transactions for inclusion into a block. You will receive a personalized link to view your transaction's status.


I don’t know yet if this is the ultimate solution. Someone needs to test it with 6.6 BTC. Where have all those who have WIF gone? Grin


I am sure you can create a tx from your script above, but you'd maybe want to include all of the input txid, to withdraw all of the money? I'm not an expert and I didn't want to leave it to chance, so that is why I used a wallet.

Why did you quote this:
Quote
Is my transaction guaranteed to get mined by Marathon?

No. Once accepted by Marathon, your transaction will compete with other Bitcoin transactions for inclusion into a block. You will receive a personalized link to view your transaction's status.

The same is true for the entire network. If your fee isn't high enough, your tx could stay around forever and never get mined. That is all they are saying. That it's not a guarantee depending on the fee you chose and how many competing tx's are in their mempool. If you submitted the minimum fee and the minimum fee steadily rises over the next weeks, months, etc. then you would have to wait until the minimum fee is the same or lower than what you submitted, or increase the fee.