opreturn_burn - Hush 3.10.3 RPC

opreturn_burn burn_amount hexstring ( txfee )

Burn the specified amount of coins via OP_RETURN. Returns unsigned transaction raw hex that must then be signed via signrawtransaction and broadcast via sendrawtransaction rpc

Arguments:
1. "burn_amount"       (numeric, required) Amount of coins to burn.
2. "hexstring"         (string, required) Hex string to include in OP_RETURN data.
3. "txfee"             (numeric, optional, default=0.0001) Transaction fee.

Result:
  {
    "hex" : "hexstring",     (string) raw hex of transaction 
  }

Examples:

Burn 10 coins with OP_RETURN data "deadbeef"
> hush-cli opreturn_burn "10" "deadbeef"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "opreturn_burn", "params": ["10", "deadbeef"] }' -H 'content-type: text/plain;' http://127.0.0.1:18031/

Burn 10 coins with OP_RETURN data "deadbeef" with 0.00005 txfee
> hush-cli opreturn_burn "10" "deadbeef" "0.00005"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "opreturn_burn", "params": ["10", "deadbeef", 0.00005] }' -H 'content-type: text/plain;' http://127.0.0.1:18031/


Maintained by The Hush Developers

Welcome to the Hush full node RPC developer documentation!!! You finally made it.