Skip to content
docs

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).

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).


optional maxTokenOut?: 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: bigint

mint: string


optional tokenIn?: 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).

optional maxAmount?: bigint

minAmount: bigint

mint: string