@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 โ
aux: OutputAux[];Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:77
chainId โ
chainId: bigint;Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:70
proof โ
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? โ
optional curve?: string;piA โ
piA: string[];piB โ
piB: string[][];piC โ
piC: string[];protocol? โ
optional protocol?: string;pubInputs โ
pubInputs: TransactPubInputs;Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:76
swap โ
swap: SwapBlob;Defined in: @lelantos-org/sdk/dist/protocol/transact.d.ts:78