/build/rpc / assets / icu
geticupayload_historical
geticupayload_historical "asset_id_or_ticker" "icu_ctxt_commit" Retrieve historical ICU payload for a given asset by explicit icu_ctxt_commit. Use this to fetch governance text from prior epochs (available via getassetpolicy rotation_history). Arguments: 1. asset_id_or_ticker (string, required) Asset ID (32-byte hex) or ticker symbol 2. icu_ctxt_commit (string, required) ICU ciphertext commitment (32-byte hex) from rotation history 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) } Examples: > bitcoin-cli geticupayload_historical "<asset_id>" "<icu_ctxt_commit>" > bitcoin-cli geticupayload_historical "GOLD" "a1b2c3..."
Signature
geticupayload_historical(asset_id_or_ticker: string, icu_ctxt_commit: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"geticupayload_historical","params":["\"<asset_id_or_ticker>\"","\"<icu_ctxt_commit>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| asset_id_or_ticker | string | yes | Asset ID (32-byte hex) or ticker symbol |
| icu_ctxt_commit | string | yes | ICU ciphertext commitment (32-byte hex) from rotation history |
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) }
Source: services/core-node/bcore/src/rpc/rawtransaction.cpp:1062
C++ symbol: geticupayload_historical