Skip to content

@lelantos-org/sdk / bundle / SpendArgs

Interface: SpendArgs โ€‹

Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:5

Properties โ€‹

asset โ€‹

ts
asset: bigint;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:35

Inherited from โ€‹

ts
BundleCommon.asset

chainId โ€‹

ts
chainId: bigint;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:34

Inherited from โ€‹

ts
BundleCommon.chainId

inputs โ€‹

ts
inputs: InputSlots;

Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:8


J โ€‹

ts
J: WasmJubjub;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:33

Inherited from โ€‹

ts
BundleCommon.J

kind โ€‹

ts
kind: SpendKind;

Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:7

Which on-chain entry point the relayer should call.


merkleRoot โ€‹

ts
merkleRoot: bigint;

Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:9


outputRandomness โ€‹

ts
outputRandomness: readonly OutputRandomness[];

Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:21


outputRecipients โ€‹

ts
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 โ€‹

ts
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 โ€‹

ts
P: Poseidon;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:32

Inherited from โ€‹

ts
BundleCommon.P

payerAddress โ€‹

ts
payerAddress: string;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:36

Inherited from โ€‹

ts
BundleCommon.payerAddress

prover? โ€‹

ts
optional prover?: Prover;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:46

Inherited from โ€‹

ts
BundleCommon.prover

proverPaths? โ€‹

ts
optional proverPaths?: ProverPaths;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:45

Pluggable prover. Pass either:

  • proverPaths: ProverPaths โ€” the SDK builds a SnarkjsProver
  • prover: Prover โ€” a custom backend (remote / worker / mock) Exactly one is required.

Inherited from โ€‹

ts
BundleCommon.proverPaths

publicOut? โ€‹

ts
optional publicOut?: bigint;

Defined in: @lelantos-org/sdk/dist/bundle/spend.d.ts:23

Value leaving the shielded pool. 0 for a transfer.


recipientAddress โ€‹

ts
recipientAddress: string;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:38

Inherited from โ€‹

ts
BundleCommon.recipientAddress

relayerAddress โ€‹

ts
relayerAddress: string;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:37

Inherited from โ€‹

ts
BundleCommon.relayerAddress

shape? โ€‹

ts
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 โ€‹

ts
BundleCommon.shape

treeDepth โ€‹

ts
treeDepth: number;

Defined in: @lelantos-org/sdk/dist/bundle/common.d.ts:47

Inherited from โ€‹

ts
BundleCommon.treeDepth

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub