@lelantos-org/sdk / bundle / SpendArgs
Interface: SpendArgs โ
Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:5
Properties โ
asset โ
asset: bigint;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:35
Inherited from โ
BundleCommon.assetchainId โ
chainId: bigint;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:34
Inherited from โ
BundleCommon.chainIdinputs โ
inputs: InputSlots;Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:8
J โ
J: WasmJubjub;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:33
Inherited from โ
BundleCommon.Jkind โ
kind: SpendKind;Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:7
Which on-chain entry point the relayer should call.
merkleRoot โ
merkleRoot: bigint;Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:9
outputRandomness โ
outputRandomness: readonly OutputRandomness[];Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:21
outputRecipients โ
outputRecipients: readonly OutputRecipient[];Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:20
Recipient address per output slot (drives the FMD clue + ECDH). Change slots take the sender's own address.
outputs โ
outputs: readonly Note[];Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:15
One note per output slot. For a transfer these are the send note and the change notes; for a withdraw all are change back to self. Together they must sum to total real input value โ publicOut.
P โ
P: Poseidon;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:32
Inherited from โ
BundleCommon.PpayerAddress โ
payerAddress: string;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:36
Inherited from โ
BundleCommon.payerAddressprover? โ
optional prover?: Prover;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:46
Inherited from โ
BundleCommon.proverproverPaths? โ
optional proverPaths?: ProverPaths;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:45
Pluggable prover. Pass either:
proverPaths: ProverPathsโ the SDK builds aSnarkjsProverprover: Proverโ a custom backend (remote / worker / mock) Exactly one is required.
Inherited from โ
BundleCommon.proverPathspublicOut? โ
optional publicOut?: bigint;Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:23
Value leaving the shielded pool. 0 for a transfer.
recipientAddress โ
recipientAddress: string;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:38
Inherited from โ
BundleCommon.recipientAddressrelayerAddress โ
relayerAddress: string;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:37
Inherited from โ
BundleCommon.relayerAddressshape? โ
optional shape?: CircuitShape;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:57
Circuit arity, when the caller knows it.
Optional because toCircomInput reads the shape off the array lengths and does not need telling. Supplying it buys a pre-flight check that the slot counts match the zkey about to be loaded โ otherwise a 2-output spend against a 3x3 key builds a perfectly valid witness with the wrong number of public inputs and fails inside the prover.
Inherited from โ
BundleCommon.shapetreeDepth โ
treeDepth: number;Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:47
Inherited from โ
BundleCommon.treeDepth