Skip to main content
POST
Populate a step with transaction data
如果请求路由时设置了 options.pools.deny,为每个步骤请求交易数据时,必须将同一份资金池标识符列表再次作为 denyPools 查询参数传入。该列表仅在当前请求中生效,不会随返回的步骤自动传递。请提供 1–100 个标识符,格式与 /v1/quote 相同:Uniswap V2/V3 的非零 EVM 资金池地址,或 Uniswap V4 的 <poolManagerAddress>-<poolId> 标识符。排除多个池时请重复传入 denyPools。JSON 请求体仍为 Step 对象。资金池排除功能仅由 fly 支持。再次传入列表,可在构建交易数据、重新获取 swap 报价时保留这些排除设置。

请求头

x-lifi-api-key
string

Authentication header, register in the LI.FI Partner Portal (https://portal.li.fi/ ) to get your API Key.

查询参数

denyPools
string[]

One to 100 AMM pool identifiers to exclude when building transaction data. If the route was requested with options.pools.deny, pass the same list again for each step. Pool exclusions are request-scoped and are not carried in the returned Step. Repeat the query parameter for multiple pools, as with /v1/quote. Each entry is a non-zero Uniswap V2/V3 EVM pool address (0x + 40 hex) or a Uniswap V4 <poolManagerAddress>-<poolId> identifier, where poolId is 0x + 64 hex. Pool exclusion is supported only by fly. Keep the Step object in the JSON request body.

Required array length: 1 - 100 elements
skipSimulation
boolean

Parameter to skip transaction simulation. The quote will be returned faster but the transaction gas limit won't be accurate.

mayanNonEvmPermitSignature
boolean

Mayan specific option to bridge from non-EVM chain to Hyperliquid

svmPriorityFeeLevel
enum<string>

Priority fee level for Solana Virtual Machine (SVM) transactions.

可用选项:
NORMAL,
FAST,
ULTRA

请求体

application/json

The step object

Object that represents one step of a Route

id
string
必填

Unique identifier of the step

type
enum<string>
必填

The type of the step. swap executes a DEX swap on a single chain, cross bridges assets between chains, lifi runs LiFi's internal multi-action logic, and protocol represents protocol-level actions such as fee collection or vault interactions executed inside LiFi managed contracts.

可用选项:
swap,
cross,
lifi,
protocol
tool
string
必填

The tool used for this step. E.g. relay

action
Root Type for Action · object
必填

The action of the step

示例:
toolDetails
object

The details of the tool used for this step. E.g. relay

estimate
Root Type for Estimate · object

The estimation for the step

示例:
integrator
string

A string containing tracking information about the integrator of the API

includedSteps
Root Type for Internal Step · object[]
referrer
string

A string containing tracking information about the referrer of the integrator

execution
any

An objection containing status information about the execution

transactionRequest
any

An ether.js TransactionRequest that can be triggered using a wallet provider. (https://docs.ethers.io/v5/api/providers/types/#providers-TransactionRequest)

响应

The step populated with the transaction data

Object that represents one step of a Route

id
string
必填

Unique identifier of the step

type
enum<string>
必填

The type of the step. swap executes a DEX swap on a single chain, cross bridges assets between chains, lifi runs LiFi's internal multi-action logic, and protocol represents protocol-level actions such as fee collection or vault interactions executed inside LiFi managed contracts.

可用选项:
swap,
cross,
lifi,
protocol
tool
string
必填

The tool used for this step. E.g. relay

action
Root Type for Action · object
必填

The action of the step

示例:
toolDetails
object

The details of the tool used for this step. E.g. relay

estimate
Root Type for Estimate · object

The estimation for the step

示例:
integrator
string

A string containing tracking information about the integrator of the API

includedSteps
Root Type for Internal Step · object[]
referrer
string

A string containing tracking information about the referrer of the integrator

execution
any

An objection containing status information about the execution

transactionRequest
any

An ether.js TransactionRequest that can be triggered using a wallet provider. (https://docs.ethers.io/v5/api/providers/types/#providers-TransactionRequest)