Language

Choose a language

/build/rpc / model

getmodelregistrationstatus

  • workflowrun-a-miner·step 3 of 6Workflow: run-a-miner · step 3 of 6

getmodelregistrationstatus "model_hash" Query the registration status of a model hash. Arguments: 1. model_hash (string, required) Model hash Result: { (json object) Model status information "model_hash" : "str", (string) Model hash "status" : "str", (string) Registration status "deposit_txid" : "str", (string) Deposit transaction id "deposit_vout" : n, (numeric) Deposit output index "deposit_block_hash" : "str", (string) Block hash where the deposit confirmed "deposit_block_height" : n, (numeric) Block height where the deposit confirmed "deposit_unspent" : true|false, (boolean) Whether the deposit output is still unspent in chainstate "commit_txid" : "str", (string) Commit transaction id (if any) "commit_block_hash" : "str", (string) Block hash where the commit confirmed "commit_block_height" : n, (numeric) Block height where the commit confirmed "verification_code" : n, (numeric) Verification result code "verification_details" : "str", (string) Optional verification details "burn_txid" : "str", (string) Burn transaction id "burn_vout" : n, (numeric) Burn output index "burn_block_height" : n, (numeric) Block height where the burn confirmed "deposit_unlock_height" : n, (numeric) Block height where owner reclaim becomes allowed "owner_reclaim_allowed" : true|false, (boolean) Whether the owner may reclaim the deposit now "burn_allowed_height" : n, (numeric) Block height where the burn allowed "burn_ready" : true|false, (boolean) Burn could be realized flag "successful_commit_count" : n, (numeric) Number of successful commit transactions confirmed on-chain "verification_event_height" : n, (numeric) Height at which the verification window closes (0 if not scheduled) "challenge_block_hash" : "str", (string) Block hash being challenged (zero if none) "challenge_deposit_txid" : "str", (string) Challenge deposit transaction id "challenge_deposit_vout" : n, (numeric) Challenge deposit output index "challenge_deposit_height" : n, (numeric) Block height of the challenge deposit "challenge_verdict_height" : n, (numeric) Scheduled height for challenge verdict (0 if none) "challenge_commit_count" : n (numeric) Number of challenge commit transactions observed } Examples: > bitcoin-cli getmodelregistrationstatus "<model_hash>"

Signature

getmodelregistrationstatus(model_hash: string) → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"getmodelregistrationstatus","params":["\"<model_hash>\""]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

NameTypeReq.Description
model_hashstringyesModel hash

Result

Type:  any

{ (json object) Model status information "model_hash" : "str", (string) Model hash "status" : "str", (string) Registration status "deposit_txid" : "str", (string) Deposit transaction id "deposit_vout" : n, (numeric) Deposit output index "deposit_block_hash" : "str", (string) Block hash where the deposit confirmed "deposit_block_height" : n, (numeric) Block height where the deposit confirmed "deposit_unspent" : true|false, (boolean) Whether the deposit output is still unspent in chainstate "commit_txid" : "str", (string) Commit transaction id (if any) "commit_block_hash" : "str", (string) Block hash where the commit confirmed "commit_block_height" : n, (numeric) Block height where the commit confirmed "verification_code" : n, (numeric) Verification result code "verification_details" : "str", (string) Optional verification details "burn_txid" : "str", (string) Burn transaction id "burn_vout" : n, (numeric) Burn output index "burn_block_height" : n, (numeric) Block height where the burn confirmed "deposit_unlock_height" : n, (numeric) Block height where owner reclaim becomes allowed "owner_reclaim_allowed" : true|false, (boolean) Whether the owner may reclaim the deposit now "burn_allowed_height" : n, (numeric) Block height where the burn allowed "burn_ready" : true|false, (boolean) Burn could be realized flag "successful_commit_count" : n, (numeric) Number of successful commit transactions confirmed on-chain "verification_event_height" : n, (numeric) Height at which the verification window closes (0 if not scheduled) "challenge_block_hash" : "str", (string) Block hash being challenged (zero if none) "challenge_deposit_txid" : "str", (string) Challenge deposit transaction id "challenge_deposit_vout" : n, (numeric) Challenge deposit output index "challenge_deposit_height" : n, (numeric) Block height of the challenge deposit "challenge_verdict_height" : n, (numeric) Scheduled height for challenge verdict (0 if none) "challenge_commit_count" : n (numeric) Number of challenge commit transactions observed }

Source: services/core-node/bcore/src/wallet/rpc/transactions.cpp:2579

C++ symbol: getmodelregistrationstatus