# LI.FI — Get a set of routes for a request that describes a transfer of tokens

Get LI.FI Advanced Routes data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Lifi, pass parameters such as fromAddress, fromAmount, fromChainId, and retrieve structured data including available route alternatives, route identifier, estimated destination amount, minimum quoted destination amount, and unavailable-route metadata to compare route estimates, and explain missing alternatives.

Documentation: https://openany.si/lifi/lifi-li-fi-get-a-set-of-routes-for-a-request-that-describes-a-transfer-of-tokens/93ccbe08-0515-45a9-89a4-5868215f55db/
API ID: 93ccbe08-0515-45a9-89a4-5868215f55db
Provider: lifi
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/lifi/v1/advanced/routes
Page update time: 2026-12-03T02:43:34.272Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:32.649Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## LI.FI Advanced Routes API

POST the transfer request object as the JSON body, rather than wrapping it inside a body property. Reference request fields include fromChainId, toChainId, fromTokenAddress, toTokenAddress, fromAmount and options.

## What You Can Build

- **Compare route estimates**: Keep route IDs with amount estimates.
- **Explain missing alternatives**: Read unavailableRoutes when no desired route is returned.

## Returned Data

| Field | Meaning |
| --- | --- |
| `routes` | Available route alternatives |
| `routes[].id` | Route identifier |
| `routes[].fromAmount` | Source amount in base units |
| `routes[].toAmount` | Estimated destination amount |
| `routes[].toAmountMin` | Minimum quoted destination amount |
| `unavailableRoutes` | Unavailable-route metadata |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LI.FI — Get a set of routes for a request that describes a transfer of tokens request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "description": "A description of a token transfer",
      "example": {
        "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
        "fromAmount": "1000000000000000000",
        "fromChainId": 100,
        "fromTokenAddress": "0x63e62989d9eb2d37dfdb1f93a22f063635b07d51",
        "options": {
          "bridges": {
            "allow": [
              "relay"
            ]
          },
          "exchanges": {
            "allow": [
              "1inch",
              "openocean"
            ]
          },
          "fee": 0.02,
          "integrator": "fee-demo",
          "slippage": 0.003
        },
        "toChainId": 137,
        "toTokenAddress": "0xc0b2983a17573660053beeed6fdb1053107cf387"
      },
      "examples": [
        {
          "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
          "fromAmount": "100000000",
          "fromChainId": 1,
          "fromTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "options": {
            "slippage": 0.005
          },
          "toChainId": 10,
          "toTokenAddress": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
        }
      ],
      "properties": {
        "fromAddress": {
          "description": "The sending wallet address",
          "example": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
          "type": "string"
        },
        "fromAmount": {
          "description": "The amount that should be transferred including all decimals (e.g. 1000000 for 1 USDC (6 decimals))",
          "example": "100000000",
          "type": "string"
        },
        "fromAmountForGas": {
          "description": "The amount of the token to convert to gas on the destination side.",
          "type": "string"
        },
        "fromChainId": {
          "description": "The sending chain id",
          "example": 1,
          "format": "number",
          "type": "number"
        },
        "fromTokenAddress": {
          "description": "The address of the sending `Token`",
          "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "type": "string"
        },
        "options": {
          "description": "Optional configuration for the routes",
          "example": {
            "slippage": 0.005
          },
          "properties": {
            "allowDestinationCall": {
              "default": true,
              "description": "Defines if we should return routes with a cross-chain bridge protocol (Connext, etc.) destination calls or not.",
              "type": "boolean"
            },
            "allowSwitchChain": {
              "default": false,
              "description": "Whether chain switches should be allowed in the routes",
              "type": "boolean"
            },
            "bridges": {
              "description": "Object configuring the bridges that should or should not be taken into consideration for the possibilities",
              "properties": {
                "allow": {
                  "default": [
                    "all"
                  ],
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "deny": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "prefer": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "title": "Root Type for AllowDenyPrefer",
              "type": "object"
            },
            "distributionFees": {
              "description": "Optional array of partner-specified fee distributions. Each entry transfers its `percentage` of the source `fromAmount` to the `receiver` address in parallel with the integrator fee and any intermediary carve-out. Same validation and chain-support rules as the /quote `distributionFees` query parameter. On EVM and Tron this requires FeeForwarder; on Solana each receiver is a transfer instruction and at most 2 entries are accepted. The `receiver` form must match the source chain. Limits: 1..10 entries, each `percentage` in (0, 0.5); total of all distribution percentages plus the integrator `fee` must be strictly less than 1. Receivers are sanctions-screened at transaction-build time. On Solana swap-and-bridge routes the percentages apply to the swap output in the intermediate token.",
              "items": {
                "description": "Partner-specified fee distribution entry. The `percentage` of the original `fromAmount` is transferred to `receiver` in parallel with the integrator fee and any intermediary carve-out — via the FeeForwarder contract on EVM/Tron, as a dedicated transfer instruction on Solana. On Solana swap-and-bridge routes, the percentage applies to the swap output in the intermediate token instead of fromAmount.",
                "properties": {
                  "percentage": {
                    "description": "Fraction of the source token's `fromAmount` to transfer to the receiver (on Solana swap-and-bridge routes, use the swap output in the intermediate token instead). Must be greater than 0 and strictly less than 0.5 per entry; the total of all distributionFees percentages plus the integrator `fee` must remain strictly less than 1.",
                    "exclusiveMaximum": 0.5,
                    "exclusiveMinimum": 0,
                    "format": "double",
                    "type": "number"
                  },
                  "receiver": {
                    "description": "Recipient address in the form of the source chain: 20-byte 0x-prefixed hex on EVM/Tron (all-lowercase or a valid EIP-55 checksum), base58 public key on Solana. A receiver whose form does not match the source chain is rejected.",
                    "pattern": "^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$",
                    "type": "string"
                  }
                },
                "required": [
                  "percentage",
                  "receiver"
                ],
                "title": "Root Type for DistributionFeeEntry",
                "type": "object"
              },
              "maxItems": 10,
              "minItems": 1,
              "type": "array"
            },
            "exchanges": {
              "description": "Object configuring the exchanges that should or should not be taken into consideration for the possibilities",
              "properties": {
                "allow": {
                  "default": [
                    "all"
                  ],
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "deny": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "prefer": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "title": "Root Type for AllowDenyPrefer",
              "type": "object"
            },
            "fee": {
              "description": "The percent of the integrator's fee that is taken from every transaction. The maximum fee amount should be less than 100%.",
              "exclusiveMaximum": 1,
              "format": "double",
              "minimum": 0,
              "type": "number"
            },
            "insurance": {
              "deprecated": true,
              "description": "Facilitates transfer insurance via insurace.io, ensuring secure and insured transfer of assets.",
              "type": "boolean"
            },
            "integrator": {
              "description": "Custom string the developer who integrates LiFi can set",
              "type": "string"
            },
            "maxPriceImpact": {
              "description": "The price impact threshold above which routes are hidden. As an example, one should specify 0.15 (15%) to hide routes with more than 15% price impact. The default is 10%.",
              "format": "double",
              "type": "number"
            },
            "order": {
              "description": "The way the resulting routes should be ordered",
              "enum": [
                "FASTEST",
                "CHEAPEST"
              ],
              "type": "string"
            },
            "pools": {
              "description": "AMM pools or Solana venues that should not be considered for routing. Nested under `options.pools.deny` on POST `/v1/advanced/routes`. Only some exchanges can exclude pools: EVM pool entries restrict swaps on every chain except Solana to the `fly` exchange, and Solana program IDs restrict swaps on Solana to `jupiter`, `titan` and `okx`. Swaps on a chain with no matching entries are not restricted. The list is not carried in the returned steps: pass it again as the `denyPools` query parameter on every POST `/v1/advanced/stepTransaction` request.",
              "properties": {
                "deny": {
                  "description": "One to 100 AMM pool or Solana venue identifiers to exclude. Each entry is a non-zero Uniswap V2/V3 pool address (`0x` + 40 hex), a Uniswap V4 composite `<poolManagerAddress>-<poolId>` where `poolId` is a 32-byte hex string (`0x` + 64 hex), or a Solana venue program ID (base58), which excludes every pool of that venue. Identifiers of other chains are rejected; individual Solana pool addresses are not supported.",
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 100,
                  "minItems": 1,
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": "object"
            },
            "preset": {
              "description": "Pre-configured routing and quote optimization preset. The preset value `stablecoin` is supported for requesting swap and/or bridging operations involving stablecoin tokens. Each preset provides optimized default settings for slippage, price impact, and tool preferences that can be overridden by custom configuration options specified in the same request.",
              "example": "stablecoin",
              "maxLength": 50,
              "minLength": 1,
              "pattern": "^[a-zA-Z0-9-_]+$",
              "type": "string"
            },
            "referrer": {
              "description": "Integrators can set a wallet address as referrer to track them",
              "type": "string"
            },
            "slippage": {
              "description": "The maximum allowed slippage",
              "format": "double",
              "type": "number"
            },
            "svmMaxSupportedTransactionVersion": {
              "default": 0,
              "description": "Maximum Solana transaction version the client can sign. Defaults to 0; omission or null uses v0. Set to 1 to allow V1 where enabled. Jito requests always use v0. At execution, pass the maximum to /advanced/stepTransaction and inspect transactionRequest.svmTransactionVersion.",
              "enum": [
                0,
                1
              ],
              "type": [
                "number",
                "null"
              ]
            },
            "svmPriorityFeeLevel": {
              "description": "Priority fee level for Solana Virtual Machine (SVM) transactions.",
              "enum": [
                "NORMAL",
                "FAST",
                "ULTRA"
              ],
              "type": "string"
            },
            "timing": {
              "properties": {
                "routeTimingStrategies": {
                  "description": "Timing setting to wait for a certain amount of routes to be generated before choosing the best one. Please check [docs.li.fi](https://docs.li.fi) for more details.",
                  "items": {
                    "properties": {
                      "minWaitTimeMs": {
                        "maximum": 15000,
                        "minimum": 0,
                        "type": "number"
                      },
                      "reduceEveryMs": {
                        "maximum": 15000,
                        "minimum": 0,
                        "type": "number"
                      },
                      "startingExpectedResults": {
                        "maximum": 100,
                        "minimum": 0,
                        "type": "number"
                      },
                      "strategy": {
                        "enum": [
                          "minWaitTime"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                },
                "swapStepTimingStrategies": {
                  "description": "Timing setting to wait for a certain amount of swap rates. Please check [docs.li.fi](https://docs.li.fi) for more details.",
                  "items": {
                    "properties": {
                      "minWaitTimeMs": {
                        "maximum": 15000,
                        "minimum": 0,
                        "type": "number"
                      },
                      "reduceEveryMs": {
                        "maximum": 15000,
                        "minimum": 0,
                        "type": "number"
                      },
                      "startingExpectedResults": {
                        "maximum": 100,
                        "minimum": 0,
                        "type": "number"
                      },
                      "strategy": {
                        "enum": [
                          "minWaitTime"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            }
          },
          "title": "Root Type for RouteOptions",
          "type": "object"
        },
        "toAddress": {
          "description": "The receiving wallet address",
          "type": "string"
        },
        "toChainId": {
          "description": "The id of the receiving chain",
          "example": 10,
          "format": "number",
          "type": "number"
        },
        "toTokenAddress": {
          "description": "The address of the receiving `Token`",
          "example": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
          "type": "string"
        }
      },
      "required": [
        "fromAmount",
        "fromChainId",
        "fromTokenAddress",
        "toChainId",
        "toTokenAddress"
      ],
      "title": "Root Type for RoutesRequest",
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "routes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fromAddress": {
            "type": "string"
          },
          "fromAmount": {
            "type": "string"
          },
          "fromAmountUSD": {
            "type": "string"
          },
          "fromChainId": {
            "type": "integer"
          },
          "fromToken": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "chainId": {
                "type": "integer"
              },
              "coinKey": {
                "type": "string"
              },
              "decimals": {
                "type": "integer"
              },
              "logoURI": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "priceUSD": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "verificationStatus": {
                "type": "string"
              },
              "verificationStatusBreakdown": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string"
                    },
                    "providerResult": {
                      "type": "string"
                    },
                    "result": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "id": {
            "type": "string"
          },
          "toAddress": {
            "type": "string"
          },
          "toAmount": {
            "type": "string"
          },
          "toAmountMin": {
            "type": "string"
          },
          "toAmountUSD": {
            "type": "string"
          },
          "toChainId": {
            "type": "integer"
          },
          "toToken": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "chainId": {
                "type": "integer"
              },
              "coinKey": {
                "type": "string"
              },
              "decimals": {
                "type": "integer"
              },
              "logoURI": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "priceUSD": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "verificationStatus": {
                "type": "string"
              },
              "verificationStatusBreakdown": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string"
                    },
                    "providerResult": {
                      "type": "string"
                    },
                    "result": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "unavailableRoutes": {
      "type": "object",
      "properties": {
        "failed": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "overallPath": {
                "type": "string"
              },
              "subpaths": {
                "type": "object",
                "properties": {
                  "1:USDC-squid-10:USDC": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {}
                    }
                  }
                }
              }
            }
          }
        },
        "filteredOut": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "overallPath": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/lifi/v1/advanced/routes' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
  "fromAmount": "100000000",
  "fromChainId": 1,
  "fromTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "options": {
    "slippage": 0.005
  },
  "toChainId": 10,
  "toTokenAddress": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "routes": [
    {
      "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
      "fromAmount": "100000000",
      "fromAmountUSD": "100.0235",
      "fromChainId": 1,
      "fromToken": {
        "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "chainId": 1,
        "coinKey": "USDC",
        "decimals": 6,
        "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
        "name": "USD Coin",
        "priceUSD": "1.0002350525",
        "symbol": "USDC",
        "tags": [
          "stablecoin"
        ],
        "verificationStatus": "verified",
        "verificationStatusBreakdown": [
          {
            "provider": "hypernative",
            "providerResult": "accept",
            "result": "verified"
          }
        ]
      },
      "id": "f7623b70-2446-47a7-a306-2f67fa59301f",
      "toAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
      "toAmount": "99739729",
      "toAmountMin": "99739729",
      "toAmountUSD": "99.8232",
      "toChainId": 10,
      "toToken": {
        "address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
        "chainId": 10,
        "coinKey": "USDC",
        "decimals": 6,
        "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
        "name": "USD Coin",
        "priceUSD": "1.0008373187",
        "symbol": "USDC",
        "tags": [
          "stablecoin"
        ],
        "verificationStatus": "verified",
        "verificationStatusBreakdown": [
          {
            "provider": "hypernative",
            "providerResult": "accept",
            "result": "verified"
          }
        ]
      }
    },
    {
      "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
      "fromAmount": "100000000",
      "fromAmountUSD": "100.0235",
      "fromChainId": 1,
      "fromToken": {
        "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "chainId": 1,
        "coinKey": "USDC",
        "decimals": 6,
        "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
        "name": "USD Coin",
        "priceUSD": "1.0002350525",
        "symbol": "USDC",
        "tags": [
          "stablecoin"
        ],
        "verificationStatus": "verified",
        "verificationStatusBreakdown": [
          {
            "provider": "hypernative",
            "providerResult": "accept",
            "result": "verified"
          }
        ]
      },
      "id": "b64036bd-0985-441e-9019-ac734c8c517a",
      "toAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
      "toAmount": "99750000",
      "toAmountMin": "99750000",
      "toAmountUSD": "99.8335",
      "toChainId": 10,
      "toToken": {
        "address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
        "chainId": 10,
        "coinKey": "USDC",
        "decimals": 6,
        "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
        "name": "USD Coin",
        "priceUSD": "1.0008373187",
        "symbol": "USDC",
        "tags": [
          "stablecoin"
        ],
        "verificationStatus": "verified",
        "verificationStatusBreakdown": [
          {
            "provider": "hypernative",
            "providerResult": "accept",
            "result": "verified"
          }
        ]
      }
    }
  ],
  "unavailableRoutes": {
    "failed": [
      {
        "overallPath": "1:USDC~1:USDC-1:USDC-squid-10:USDC",
        "subpaths": {
          "1:USDC-squid-10:USDC": [
            {}
          ]
        }
      }
    ],
    "filteredOut": [
      {
        "overallPath": "1:USDC~1:USDC-1:USDC-near-10:USDC",
        "reason": "The route estimation did not complete before the route timing strategy stopped waiting for results"
      },
      {
        "overallPath": "1:USDC~1:ETH-1:ETH-across-10:ETH-10:ETH~10:USDC",
        "reason": "Across does not send ETH to contracts (receiver: ReceiverAcrossV4)"
      }
    ]
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Where should I put the transfer request?
Send the object directly as the application/json POST body.

### Is the amount a display quantity?
No. fromAmount is a base-unit token quantity.

### Can I receive no available routes?
Handle an empty routes list and inspect unavailableRoutes rather than assuming an alternative always exists.

### Does an available route prove execution?
No. A route is a planning result, not a signed or completed transaction.

### Are route amounts guaranteed indefinitely?
No. Treat estimates as quote-time data and refresh them when preparing a later action.

### Are network fees the OpenAny API call price?
No. Gas and transfer fee estimates describe the on-chain operation. Review the selected implementation pricing separately for the OpenAny request.

## Available implementations
- lifi: https://openany.si/lifi/lifi-li-fi-get-a-set-of-routes-for-a-request-that-describes-a-transfer-of-tokens/93ccbe08-0515-45a9-89a4-5868215f55db/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
