createmodelburn
createmodelburn "model_hash" ( broadcast ) Create and optionally broadcast a burn transaction for a failed model deposit. Arguments: 1. model_hash (string, required) Model hash referencing the failed registration 2. broadcast (boolean, optional) Broadcast the transaction (default true) Result: { (json object) Burn transaction details "txid" : "str", (string) Transaction id of the burn transaction "hex" : "str", (string) Raw transaction hex "model_hash" : "str", (string) Model hash "burn_prevout" : "str", (string) Outpoint being burned "burn_allowed_height" : n, (numeric) Height from which burning is permitted "broadcast" : true|false (boolean) Whether the transaction was broadcast } Examples: > bitcoin-cli createmodelburn "<model_hash>"
Signature
createmodelburn(model_hash: string, broadcast?: boolean) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"createmodelburn","params":["\"<model_hash>\"",false]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| model_hash | string | yes | Model hash referencing the failed registration |
| broadcast | boolean | — | Broadcast the transaction (default true) |
Result
Type: any
{ (json object) Burn transaction details "txid" : "str", (string) Transaction id of the burn transaction "hex" : "str", (string) Raw transaction hex "model_hash" : "str", (string) Model hash "burn_prevout" : "str", (string) Outpoint being burned "burn_allowed_height" : n, (numeric) Height from which burning is permitted "broadcast" : true|false (boolean) Whether the transaction was broadcast }
Source: services/core-node/bcore/src/wallet/rpc/transactions.cpp:1173
C++ symbol: createmodelburn