Language

Choose a language

/build/rpc / assets / icu

geticupayload_prior

geticupayload_prior "asset_id_or_ticker" Retrieve the ICU payload from the immediately prior epoch (convenience wrapper for geticupayload_historical). Returns the previous governance document if the asset has been rotated at least once. Arguments: 1. asset_id_or_ticker (string, required) Asset ID (32-byte hex) or ticker symbol Result: { (json object) "icu_cipher" : "hex", (string) Encrypted ICU payload (holder-only assets) "canonical_hash" : "hex", (string) SHA256 of canonical plaintext "compression" : n, (numeric) Compression mode (0=none, 1=zstd) "encryption_mode" : n, (numeric) Encryption mode (0=none, 1=AES-GCM, 2=XChaCha20) "visibility" : n, (numeric) Visibility (0=public, 1=holder_only) "policy_epoch" : n, (numeric) The epoch number for this prior snapshot "icu_ctxt_commit" : "hex" (string) The commit hash for this payload } Examples: > bitcoin-cli geticupayload_prior "<asset_id>" > bitcoin-cli geticupayload_prior "GOLD"

Signature

geticupayload_prior(asset_id_or_ticker: string) → any

Code samples

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

Parameters

NameTypeReq.Description
asset_id_or_tickerstringyesAsset ID (32-byte hex) or ticker symbol

Result

Type:  any

{ (json object) "icu_cipher" : "hex", (string) Encrypted ICU payload (holder-only assets) "canonical_hash" : "hex", (string) SHA256 of canonical plaintext "compression" : n, (numeric) Compression mode (0=none, 1=zstd) "encryption_mode" : n, (numeric) Encryption mode (0=none, 1=AES-GCM, 2=XChaCha20) "visibility" : n, (numeric) Visibility (0=public, 1=holder_only) "policy_epoch" : n, (numeric) The epoch number for this prior snapshot "icu_ctxt_commit" : "hex" (string) The commit hash for this payload }

Source: services/core-node/bcore/src/rpc/rawtransaction.cpp:1146

C++ symbol: geticupayload_prior