SerializedExpectation
Defined in: wallet-solana/src/serialized.ts:112
What the caller expects the transaction to do with this wallet’s balances. Every bound is a non-negative bigint; anything else is refused before the network is consulted (a negative minimum would read as permission to lose that much — scan 2026-10-27 modules, F10/F11).
Properties
Section titled “Properties”maxLamportsOut
Section titled “maxLamportsOut”maxLamportsOut:
bigint
Defined in: wallet-solana/src/serialized.ts:114
Most lamports the wallet may lose, fee excluded (the swap input for a SOL source; rent/fee slack for a token source).
maxTokenOut?
Section titled “maxTokenOut?”
optionalmaxTokenOut?:object
Defined in: wallet-solana/src/serialized.ts:122
Token the wallet may SEND and the most it may lose of it (the swap input for a token source).
amount
Section titled “amount”amount:
bigint
mint:
string
tokenIn?
Section titled “tokenIn?”
optionaltokenIn?:object
Defined in: wallet-solana/src/serialized.ts:120
Token the wallet must RECEIVE (same-chain swaps): the mint and the quoted minimum. Native SOL is
11111111111111111111111111111111, 0x0… or the wSOL mint. maxAmount, when set, is the most
it may receive: a builder that hands over more than was asked did something else (a bigger borrow).
maxAmount?
Section titled “maxAmount?”
optionalmaxAmount?:bigint
minAmount
Section titled “minAmount”minAmount:
bigint
mint:
string