burn your bitcoins the proper way
# 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"