destroyamount (0.18.1.5 RPC)

destroyamount "asset" amount ( "comment" )

Destroy an amount of a given asset.


Arguments:
1. asset      (string, required) Hex asset id or asset label to destroy.
2. amount     (numeric or string, required) The amount to destroy (8 decimals above the minimal unit).
3. comment    (string, optional) A comment used to store what the transaction is for.
              This is not part of the transaction, just kept in your wallet.

Result:
"transactionid"  (string) The transaction id.

Examples:
> elements-cli destroyamount "bitcoin" 100
> elements-cli destroyamount "bitcoin" 100 "destroy assets"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "destroyamount", "params": ["bitcoin" 100 "destroy assets"] }' -H 'content-type: text/plain;' http://127.0.0.1:7041/