Skip to content
docs

TxRequest

Defined in: protocol-swap2-core/src/types.ts:53

Provider-built transaction for the CALLDATA execution model (LI.FI): the user’s wallet must execute this exact payload — a plain transfer to to would LOSE funds. Either an EVM request or a pre-serialized Solana tx.

optional approvalAddress?: string

Defined in: protocol-swap2-core/src/types.ts:60

ERC-20 sources must approve this spender before executing.


optional chainId?: number

Defined in: protocol-swap2-core/src/types.ts:57


optional data?: string

Defined in: protocol-swap2-core/src/types.ts:55


optional gasLimit?: string

Defined in: protocol-swap2-core/src/types.ts:58


optional nativeFee?: string

Defined in: protocol-swap2-core/src/types.ts:68

Native coin the route itself charges on top of the input (bridge messaging fees — Stargate/LayerZero-style), base units. A token source then sends exactly this as value; a native source sends input + this. Declared by the provider from the quote, sealed with it, and capped by the engine per chain.


optional serializedTx?: string

Defined in: protocol-swap2-core/src/types.ts:70

Solana: base64-serialized transaction to sign & broadcast as-is.


optional to?: string

Defined in: protocol-swap2-core/src/types.ts:54


optional value?: string

Defined in: protocol-swap2-core/src/types.ts:56