Skip to content
docs

SerializedExecutionExpectation

Defined in: protocol-swap2-core/src/swap2/base.ts:332

What a provider-serialized transaction is allowed to do with the bound account’s balances; derived from the validated quote and handed to the account’s sendSerializedTransaction hook, which must prove it (simulate with post-state balances) before signing. Amounts are base-unit strings.

maxValueOut: string

Defined in: protocol-swap2-core/src/swap2/base.ts:334

Most native coin the account may lose, fee excluded: swap input (native source) + allowance.


optional source?: object

Defined in: protocol-swap2-core/src/swap2/base.ts:338

Token sources: the token the account may send and the exact swap input.

maxAmount: string

token: string


optional tokenIn?: object

Defined in: protocol-swap2-core/src/swap2/base.ts:336

Same-chain swaps: the token the account must receive and the quoted minimum (zero address = native).

minAmount: string

token: string