stealthTransferInstruction
stealthTransferInstruction(
init,resolveBucket):Instruction
Defined in: ootle/src/stealth/instruction.ts:75
Encode the native StealthTransfer instruction. See the file header for the on-chain
contract and the (probe-verified) statement-encoding rationale.
The revealed_input_bucket references the saved withdraw bucket by name; the builder
declared that name via saveVar, so the WorkspaceOffsetId { id, offset: null }
is resolved here against the same name → numeric id mapping the builder uses.
Parameters
Section titled “Parameters”StealthTransferInstructionInit
The resource, revealed-input bucket name, and statement.
resolveBucket
Section titled “resolveBucket”(name) => WorkspaceOffsetId
Maps a workspace var name to its WorkspaceOffsetId. The builder owns the name → id mapping; pass a resolver so this seam stays builder-agnostic.
Returns
Section titled “Returns”Instruction