Skip to content

@lelantos-org/sdk / protocol / SubmitSwapPayload

Interface: SubmitSwapPayload โ€‹

Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:69

Atomic shielded-swap payload. Carries the leg-1 transact_2x2 SNARK (same shape as a withdraw whose recipient is the SwapWrapper) plus the leg-2 escrow blob the wrapper forwards to submitDepositAuthorized in the same tx. Relayer adds the matching tree_update_batch proof and submits to SwapWrapper.swap.

Properties โ€‹

aux โ€‹

ts
aux: OutputAux[];

Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:77


chainId โ€‹

ts
chainId: bigint;

Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:70


proof โ€‹

ts
proof: object;

Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:75

Identical layout to SubmitTransactPayload โ€” the relayer reuses the same shape validators on the leg-1 SNARK.

curve? โ€‹

ts
optional curve?: string;

piA โ€‹

ts
piA: string[];

piB โ€‹

ts
piB: string[][];

piC โ€‹

ts
piC: string[];

protocol? โ€‹

ts
optional protocol?: string;

pubInputs โ€‹

ts
pubInputs: TransactPubInputs;

Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:76


swap โ€‹

ts
swap: SwapBlob;

Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:78

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