getmodelslist
getmodelslist ( short_view ) getmodelslist Arguments: 1. short_view (boolean, optional, default=true) Display model hash, name and commit only Result: [ (json array) { (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, optional) The cid "extra" : "str", (string, optional) The extra "deposit_txid" : "str", (string, optional) The deposit txid "deposit_vout" : n, (numeric, optional) The deposit vout "deposit_amount" : n, (numeric, optional) The deposit amount "owner_key_hash" : "str", (string, optional) The key "deposit_block_hash" : "str", (string, optional) The deposit block hash "deposit_block_height" : n, (numeric, optional) The deposit block height "commit_txid" : "str", (string, optional) The commit txid "commit_block_hash" : "str", (string, optional) The commit block hash "commit_block_height" : n, (numeric, optional) The commit block height "verification_code" : n, (numeric, optional) The verification code "verification_details" : "str" (string, optional) The verification details }, ... ] Examples: > bitcoin-cli getmodelslist
Signature
getmodelslist(short_view?: boolean) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"getmodelslist","params":[true]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| short_view | boolean | — | Display model hash, name and commit only |
Result
Type: any
[ (json array) { (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, optional) The cid "extra" : "str", (string, optional) The extra "deposit_txid" : "str", (string, optional) The deposit txid "deposit_vout" : n, (numeric, optional) The deposit vout "deposit_amount" : n, (numeric, optional) The deposit amount "owner_key_hash" : "str", (string, optional) The key "deposit_block_hash" : "str", (string, optional) The deposit block hash "deposit_block_height" : n, (numeric, optional) The deposit block height "commit_txid" : "str", (string, optional) The commit txid "commit_block_hash" : "str", (string, optional) The commit block hash "commit_block_height" : n, (numeric, optional) The commit block height "verification_code" : n, (numeric, optional) The verification code "verification_details" : "str" (string, optional) The verification details }, ... ]
Source: services/core-node/bcore/src/rpc/custom.cpp:239
C++ symbol: getmodelslist