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.
Properties
Section titled “Properties”maxValueOut
Section titled “maxValueOut”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.
source?
Section titled “source?”
optionalsource?: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
Section titled “maxAmount”maxAmount:
string
token:
string
tokenIn?
Section titled “tokenIn?”
optionaltokenIn?: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
Section titled “minAmount”minAmount:
string
token:
string