/build/rpc / assets / registry
getassetregistry
getassetregistry "asset_id_or_ticker" Query the asset registry for detailed information about a specific asset. Returns the complete registry entry including ZK/ICU configuration and governance parameters. Arguments: 1. asset_id_or_ticker (string, required) Asset identifier (hex) or ticker Result: { (json object) "asset_id" : "hex", (string) Asset identifier "policy_bits" : n, (numeric) Policy flags "allowed_spk_families" : n, (numeric) Allowed script families mask "icu_txid" : "hex", (string) Current ICU transaction ID "icu_vout" : n, (numeric) Current ICU output index "unlock_fees_sats" : n, (numeric) Unlock threshold in satoshis "fees_accum_sats" : n, (numeric) Accumulated fees in satoshis "ticker" : "str", (string, optional) Ticker symbol "decimals" : n, (numeric, optional) Display decimals (255=not set) "has_kyc" : true|false, (boolean) Whether ZK/KYC verification is enabled "zk_vk_commitment" : "hex", (string, optional) ZK verification key commitment "max_root_age" : n, (numeric) Maximum merkle root age in seconds "tfr_flags" : n, (numeric) Transfer restriction flags "issued_total" : n, (numeric) Total units minted "burned_total" : n, (numeric) Total units burned "icu_flags" : n, (numeric) ICU structural flags "icu_visibility" : n, (numeric) ICU visibility (0=public, 1=holder_only) "policy_quorum_bps" : n, (numeric) Governance quorum in basis points "issuance_cap_units" : n, (numeric) Maximum issuance cap in base units (0=unlimited) "icu_ctxt_commit" : "hex", (string) ICU ciphertext commitment "icu_plain_commit" : "hex", (string) ICU plaintext commitment "core_policy_commit" : "hex", (string) Core policy immutability commitment "policy_epoch" : n (numeric) Policy version counter } Examples: > bitcoin-cli getassetregistry "a3f747562969280eb3ddc96ff57e3692b7b55611d8c89785f52fc2d1535d22b3" > bitcoin-cli getassetregistry "GOLD"
Signature
getassetregistry(asset_id_or_ticker: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"getassetregistry","params":["\"<asset_id_or_ticker>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| asset_id_or_ticker | string | yes | Asset identifier (hex) or ticker |
Result
Type: any
{ (json object) "asset_id" : "hex", (string) Asset identifier "policy_bits" : n, (numeric) Policy flags "allowed_spk_families" : n, (numeric) Allowed script families mask "icu_txid" : "hex", (string) Current ICU transaction ID "icu_vout" : n, (numeric) Current ICU output index "unlock_fees_sats" : n, (numeric) Unlock threshold in satoshis "fees_accum_sats" : n, (numeric) Accumulated fees in satoshis "ticker" : "str", (string, optional) Ticker symbol "decimals" : n, (numeric, optional) Display decimals (255=not set) "has_kyc" : true|false, (boolean) Whether ZK/KYC verification is enabled "zk_vk_commitment" : "hex", (string, optional) ZK verification key commitment "max_root_age" : n, (numeric) Maximum merkle root age in seconds "tfr_flags" : n, (numeric) Transfer restriction flags "issued_total" : n, (numeric) Total units minted "burned_total" : n, (numeric) Total units burned "icu_flags" : n, (numeric) ICU structural flags "icu_visibility" : n, (numeric) ICU visibility (0=public, 1=holder_only) "policy_quorum_bps" : n, (numeric) Governance quorum in basis points "issuance_cap_units" : n, (numeric) Maximum issuance cap in base units (0=unlimited) "icu_ctxt_commit" : "hex", (string) ICU ciphertext commitment "icu_plain_commit" : "hex", (string) ICU plaintext commitment "core_policy_commit" : "hex", (string) Core policy immutability commitment "policy_epoch" : n (numeric) Policy version counter }
Source: services/core-node/bcore/src/wallet/rpc/assets.cpp:4637
C++ symbol: getassetregistry