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.
Properties
Section titled “Properties”approvalAddress?
Section titled “approvalAddress?”
optionalapprovalAddress?:string
Defined in: protocol-swap2-core/dist/types.d.ts:59
ERC-20 sources must approve this spender before executing.
chainId?
Section titled “chainId?”
optionalchainId?:number
Defined in: protocol-swap2-core/dist/types.d.ts:56
optionaldata?:string
Defined in: protocol-swap2-core/dist/types.d.ts:54
gasLimit?
Section titled “gasLimit?”
optionalgasLimit?:string
Defined in: protocol-swap2-core/dist/types.d.ts:57
nativeFee?
Section titled “nativeFee?”
optionalnativeFee?: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.
serializedTx?
Section titled “serializedTx?”
optionalserializedTx?:string
Defined in: protocol-swap2-core/dist/types.d.ts:69
Solana: base64-serialized transaction to sign & broadcast as-is.
optionalto?:string
Defined in: protocol-swap2-core/dist/types.d.ts:53
value?
Section titled “value?”
optionalvalue?:string
Defined in: protocol-swap2-core/dist/types.d.ts:55