Language

Choose a language

/build/rpc / mining

getmodelinfo

getmodelinfo "model_hash" getmodelinfo Arguments: 1. model_hash (string, required) Model hash. Result: { (json object) "model_hash" : "str", (string) the model hash "model_name" : "str", (string) the model_name "model_commit" : "str", (string) the model_commit "difficulty" : n, (numeric) The difficulty "status" : n, (numeric) The model registration status "cid" : "str", (string) The cid "extra" : "str", (string) The extra "deposit_txid" : "str", (string) The deposit txid "deposit_vout" : n, (numeric) The deposit vout "deposit_amount" : n, (numeric) The deposit amount "owner_key_hash" : "str", (string) The key "deposit_block_hash" : "str", (string) The deposit block hash "deposit_block_height" : n, (numeric) The deposit block height "commit_txid" : "str", (string) The commit txid "commit_block_hash" : "str", (string) The commit block hash "commit_block_height" : n, (numeric) The commit block height "burn_txid" : "str", (string) The burn txid "burn_vout" : n, (numeric) The burn vout "burn_block_height" : n, (numeric) The burn block height "verification_code" : n, (numeric) The verification code "verification_details" : "str", (string) The verification details "verification_event_height" : n, (numeric) The verification event height "successful_commit_count" : n, (numeric) Number of successful commits "challenge_block_hash" : "str", (string) The challenge block hash "challenge_deposit_txid" : "str", (string) The challenge deposit txid "challenge_deposit_vout" : n, (numeric) The challenge deposit vout "challenge_deposit_height" : n, (numeric) The challenge deposit block height "challenge_commit_count" : n, (numeric) Number of commits during challenge "challenge_verdict_height" : n (numeric) Height of the challenge verdict } Examples: > bitcoin-cli getmodelinfo

Signature

getmodelinfo(model_hash: string) → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"getmodelinfo","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_hash" : "str", (string) the model hash "model_name" : "str", (string) the model_name "model_commit" : "str", (string) the model_commit "difficulty" : n, (numeric) The difficulty "status" : n, (numeric) The model registration status "cid" : "str", (string) The cid "extra" : "str", (string) The extra "deposit_txid" : "str", (string) The deposit txid "deposit_vout" : n, (numeric) The deposit vout "deposit_amount" : n, (numeric) The deposit amount "owner_key_hash" : "str", (string) The key "deposit_block_hash" : "str", (string) The deposit block hash "deposit_block_height" : n, (numeric) The deposit block height "commit_txid" : "str", (string) The commit txid "commit_block_hash" : "str", (string) The commit block hash "commit_block_height" : n, (numeric) The commit block height "burn_txid" : "str", (string) The burn txid "burn_vout" : n, (numeric) The burn vout "burn_block_height" : n, (numeric) The burn block height "verification_code" : n, (numeric) The verification code "verification_details" : "str", (string) The verification details "verification_event_height" : n, (numeric) The verification event height "successful_commit_count" : n, (numeric) Number of successful commits "challenge_block_hash" : "str", (string) The challenge block hash "challenge_deposit_txid" : "str", (string) The challenge deposit txid "challenge_deposit_vout" : n, (numeric) The challenge deposit vout "challenge_deposit_height" : n, (numeric) The challenge deposit block height "challenge_commit_count" : n, (numeric) Number of commits during challenge "challenge_verdict_height" : n (numeric) Height of the challenge verdict }

Source: services/core-node/bcore/src/rpc/custom.cpp:314

C++ symbol: getmodelinfo