Store and manage call preimages on-chain. Preimages are the encoded call data referenced by hash in governance proposals and scheduled calls.
Store a call preimage on-chain. Returns the preimage hash.
agcli preimage note --pallet SubtensorModule --call add_stake \
--args '["5Hotkey...", 1, 1000000000]'
# Output: Preimage hash: 0x...Remove a previously stored preimage.
agcli preimage unnote --hash 0x...- Store call data for governance proposals
- Prepare calls for scheduler to execute later
- Pre-register complex extrinsic data
Preimage::note_preimage(bytes)— Store encoded callPreimage::unnote_preimage(hash)— Remove stored preimage
agcli scheduler schedule— Schedule a call for future execution