get the bitcoin whitepaper directly from the utxoset. This works on a pruned node:

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

@jb55 TIL there is a ~200kB Bitcoin transaction :)

@jb55 this is awesome. Well done! Works like a charm

@jb55 a bit slow, but very cool.

I have a PR that introduces an RPC call to fetch a single block from a peer, which could be handy for pruned nodes:

@jb55 You also have this one. Don't know if it works on a pruned node tho.

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

@0xtr it doesn’t. Also requires txindex. But it’s fast at least

Sign in to participate in the conversation
Bitcoin Mastodon

Bitcoin Maston Instance