Replying to Avatar 0xtr

Today feels like a good day to remind everyone that if you're running your own node, you can fetch the whitepaper from the blockchain. Just run the following command:

bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713  | sed 's/0100000000000000/\n/g' | tail -n +2 | cut -c7-136,139-268,271-400 | tr -d '\n' | cut -c17-368600 | xxd -p -r > bitcoin.pdf

And if you're running a pruned node, #[0] taught me another neat way to do it:

seq 0 947 | (while read -r n; do bitcoin-cli gettxout 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 $n | jq -r '.scriptPubKey.asm' | awk '{ print $2 $3 $4 }'; done) | tr -d '\n' | cut -c 17-368600 | xxd -r -p > bitcoin-test.pdf

25
25885614... 3y ago

Sickk 😎

Reply to this note

Please Login to reply.

Discussion

No replies yet.