Transaction

af5df447cef2f0e172b52b2c2b4ace405abc341325a1066de95d3b7062b1d8bc
( - )
127,485
2021-11-24 01:44:41
1
4,969 B

2 Outputs

Total Output:
  • jMš#!/bin/bash outputs='-o 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2:100200' # https://tails.boum.org/donate/index.en.html outputs_sum=$(( 100200 )) # <<<<<!!!!! DO NOT FORGET TO CHANGE AFTER CHANGING OUTPUTS !!!!! fee=5 # sats/byte big_address=???normal-legacy-1xxx...-address-for-paying-fee-and-outputs??? # you can create it here https://coinb.in/#newAddress big_address_pubscript='dup hash160 [???pubscript???] equalverify checksig' # ???pubscript??? should be the result of "bx bitcoin160 ???big_address_pubkey???" set -e -o pipefail echo check bx... bx help | grep tx-encode || { echo you need to download '"bx" tool (https://github.com/libbitcoin/libbitcoin-explorer/wiki/Download-BX)' and save it somewhere on your PATH "($PATH)" exit 1 } echo ================================================== echo check file... file="$1" [[ -f "$file" && -s "$file" ]] || { echo usage: $0 file; exit 1; } ls -l "$file" echo ================================================== echo this script will create many temporary files in the current working directory "($(realpath .))" read -p 'continue (y|N)? ' x [[ $x == y ]] || exit 1 ########## find . -name 'sfimibt-100k-*' -delete split -a4 -b87000 "$file" sfimibt-100k- find . -name 'sfimibt-100k-*' | sort | while read f100k do echo ================================================== echo doing $f100k find . -name 'sfimibt-500b-*' -delete split -a2 -b500 $f100k sfimibt-500b- find . -name 'sfimibt-500b-??' | sort >sfimibt-500b-list.txt i=0 inputs= input_set= exec 33<sfimibt-500b-list.txt while read -u 33 f500b do data_base16=$(bx base16-encode <$f500b) data_sha160=$(bx sha160 $data_base16) script_base16=$(bx script-encode "sha1 [$data_sha160] equal") script_address=$(bx script-to-address "sha1 [$data_sha160] equal") inputs+="inputs[$i]=' -i '\$topup_tx_id:\$(outnum $script_address) # top up: 0.00000546 " input_set+="bx input-set -i $i '[$data_base16] [$script_base16]' <$f100k-tx.txt >$f100k-tx.tmp mv $f100k-tx.tmp $f100k-tx.txt " i=$((i+1)) done inputs+="inputs[$i]=' -i '\$topup_tx_id:\$(outnum $big_address) # top up: big_address" input_set+="bx input-set -i $i '$big_address_pubscript' <$f100k-tx.txt >$f100k-tx.tmp mv $f100k-tx.tmp $f100k-tx.txt" # this is a hack/feature of coinb.in - "bx input-set" is used for inserting sigscript, and inserting pubscript is wrong. But coinb.in/#sign accepts such incorrect transaction, and inserts correct sigscript. echo "set -e -o pipefail #grep -m1 '\\baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' \$0 && { echo you have to edit this script and insert real tx id-s and output numbers; exit 1; } topup_tx_id=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa function outnum() { #topup-\$topup_tx_id.txt should contain a list of addresses - one address on each line #you can copy the list from here https://explorer.viawallet.com/btc/tx/??? or here https://bitcoinblockexplorers.com/tx/??? # #then uncomment perl command, comment echo command, and this script is ready to run #perl -ne /\$1/' && print(\$.-1)' topup-\$topup_tx_id.txt echo 0 } declare -a inputs $inputs bx tx-encode $outputs \${inputs[*]} >$f100k-tx.txt $input_set " >$f100k-create-tx.sh bash $f100k-create-tx.sh txsize=$(( $(wc -c <$f100k-tx.txt) / 2 )) topup_total=$(( txsize*fee + outputs_sum )) big_topup=$( perl -e "printf('%.08f', ($topup_total - $i*546)/100000000 )" ) echo i=$i\; txsize=$txsize\; topup_total=$topup_total\; big_topup=$big_topup sed -i -e "s/^#grep/grep/; s/big_address/$big_topup/" $f100k-create-tx.sh done find . -name 'sfimibt-500b-*' -delete echo 'set -e -o pipefail rm -f sfimibt-broadcast-all-transactions.txt for f in sfimibt-100k-*-create-tx.sh do echo doing $f bash $f { echo $f: cat ${f%-create-tx.sh}-tx.txt echo sign this transaction on "coinb.in/#sign" with the private key of the address '$big_address' echo "-signed tx: ???" echo and broadcast signed tx via "coinb.in/#broadcast" echo "-sent time: ???, txid: ???" echo } >>sfimibt-broadcast-all-transactions.txt done { echo ---------- echo "-!AND DO NOT FORGET TO DOWNLOAD AND CHECK! (e.g. here https://explorer.viawallet.com/btc/tx/???)" } >>sfimibt-broadcast-all-transactions.txt echo everything is ok, now you can open '"$(realpath sfimibt-broadcast-all-transactions.txt)"' and broadcast all transactions ' >sfimibt-create-all-transactions.sh echo ================================================== echo all done echo 'now you should: -1) edit every sfimibt-100k-*-create-tx.sh script -2) top up all addresses which you will see inside -3) then run sfimibt-create-all-transactions.sh script -4) and finally sign and broadcast all transactions from sfimibt-broadcast-all-transactions.txt'
    https://whatsonchain.com/tx/af5df447cef2f0e172b52b2c2b4ace405abc341325a1066de95d3b7062b1d8bc