Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 581 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 581 Bytes

burn

burn your bitcoins the proper way

Usage

# find output you want to burn
bitcoin-cli listunspent
# replace vars with values from output of listunspent
tx=$(burn --txid $TXID --vout $VOUT --amount $AMOUNT --msg "some msg")
signed_tx=$(bitcoin-cli signrawtransactionwithwallet "$tx" | jq -r .hex)
bitcoin-cli sendrawtransaction "$signed_tx"

The jq util used above can be found here.

You can easily inspect raw transactions.

bitcoin-cli decoderawtransaction "$tx"
bitcoin-cli decoderawtransaction "$signed_tx"