opreturn_burn - Spacecoin RPC Docs


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"
> spacecoin-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:35593/

Burn 10 coins with OP_RETURN data "deadbeef" with 0.00005 txfee
> spacecoin-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:35593/


Learn more about spacecoin at spacecoin.network.
Docs generated by spacecoin v0.6.1.
Find this github repo at spacecoinSPACE/spacecoin-rpc-docs.

Spacecoin Logo



Auction











Lotto