Skip to content
docs

TxRequest

Defined in: protocol-swap2-core/dist/types.d.ts:52

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/dist/types.d.ts:59

ERC-20 sources must approve this spender before executing.


optional chainId?: number

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


optional data?: string

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


optional gasLimit?: string

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


optional nativeFee?: string

Defined in: protocol-swap2-core/dist/types.d.ts:67

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/dist/types.d.ts:69

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


optional to?: string

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


optional value?: string

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