Skip to content

Instantly share code, notes, and snippets.

@ottosch
Created May 3, 2025 22:28
Show Gist options
  • Save ottosch/b9448a57daf0e07f1d934ab8f395e0a6 to your computer and use it in GitHub Desktop.
Save ottosch/b9448a57daf0e07f1d934ab8f395e0a6 to your computer and use it in GitHub Desktop.
Draws ASCII art from tx 5c4f060e6166a530d891cafd0e9df42441d29b1ed9cff71a1652201b8d50bd72
bitcoin-cli getrawtransaction 5c4f060e6166a530d891cafd0e9df42441d29b1ed9cff71a1652201b8d50bd72 2 | jq -r '.vout[].scriptPubKey.hex | sub("^.{6}"; "")' | while read -r output; do echo "$output" | xxd -p -r; echo; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment