LI.FI advanced API

The advanced API from LI.FI — 3 operation(s) for advanced.

OpenAPI Specification

lifi-advanced-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: LI.FI Earn advanced API
  description: Enterprise DeFi yield discovery and tracking API
  version: 0.1.0
  contact: {}
servers:
- url: https://earn.li.fi
  description: Production
security:
- x-lifi-api-key: []
tags:
- name: advanced
paths:
  /v1/advanced/possibilities:
    description: ''
    post:
      requestBody:
        description: 'Object defining preferences regarding chain, exchanges and bridges.

          Retrieve the up-to-date lists of supported exchanges and bridges from the `/v1/tools` endpoint.'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PossibilitiesRequest'
            examples:
              PossibilitiesRequestExample:
                value:
                  chains:
                  - 100
                  - 137
                  bridges:
                    allow:
                    - relay
                    - hop
                    deny:
                    - cbridge
                    prefer:
                    - relay
                  exchanges:
                    allow:
                    - 1inch
                    - paraswap
                    - openocean
                    deny:
                    - 0x
                    prefer:
                    - 1inch
      tags:
      - advanced
      parameters:
      - name: x-lifi-api-key
        description: Authentication header, register in the LI.FI Partner Portal (https://portal.li.fi/ ) to get your API Key.
        schema:
          type: string
        in: header
        required: false
      responses:
        '200':
          $ref: '#/components/responses/PossibilitiesResponse'
      deprecated: true
      summary: Get information about available services, chains and tokens
      description: 'Get a set of current possibilities based on a request that specifies which chains, exchanges and bridges are preferred or unwanted.

        **Attention**: This request is more complex and intended to be used via our [JavaScript SDK](https://docs.li.fi/integrate-li.fi-js-sdk/install-li.fi-sdk).'
  /v1/advanced/routes:
    post:
      requestBody:
        description: The request object describes a desired any-to-any transfer and contains all information necessary to calculate the most efficient routes.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoutesRequest'
            examples:
              RoutesRequestExample:
                value:
                  fromChainId: 100
                  fromAmount: '1000000000000000000'
                  fromTokenAddress: '0x0000000000000000000000000000000000000000'
                  toChainId: 137
                  toTokenAddress: '0x0000000000000000000000000000000000000000'
                  options:
                    integrator: fee-demo
                    referrer: '0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0'
                    slippage: 0.003
                    fee: 0.02
                    bridges:
                      allow:
                      - relay
                    exchanges:
                      allow:
                      - 1inch
                      - openocean
                    allowSwitchChain: true
                    order: CHEAPEST
                    maxPriceImpact: 0.1
        required: true
      tags:
      - advanced
      parameters:
      - name: x-lifi-api-key
        description: Authentication header, register in the LI.FI Partner Portal (https://portal.li.fi/ ) to get your API Key.
        schema:
          type: string
        in: header
      responses:
        '200':
          $ref: '#/components/responses/RoutesResponse'
        '400':
          $ref: '#/components/responses/InvalidRoutesRequest'
        '404':
          $ref: '#/components/responses/InvalidRoutesNotFoundRequest'
      summary: Get a set of routes for a request that describes a transfer of tokens
      description: 'In order to execute any transfer, you must first request possible `Routes`. From the result set a `Route` can be selected and executed by retrieving the transaction for every included `Step` using the `/steps/transaction` endpoint.

        **Attention**: This request is more complex and intended to be used via our [JavaScript SDK](https://docs.li.fi/integrate-li.fi-js-sdk/install-li.fi-sdk).'
  /v1/advanced/stepTransaction:
    post:
      requestBody:
        description: The step object
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Step'
            examples:
              StepRequestExample:
                value:
                  id: a8dc011a-f52d-4492-9e99-21de64b5453a
                  type: lifi
                  tool: 1inch
                  toolDetails:
                    key: 1inch
                    logoURI: https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/oneinch.svg
                    name: 1inch
                  action:
                    fromChainId: 100
                    toChainId: 100
                    fromToken:
                      address: '0x0000000000000000000000000000000000000000'
                      symbol: xDai
                      decimals: 18
                      chainId: 100
                      name: xDai
                      coinKey: xDai
                      priceUSD: '1'
                      logoURI: https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png
                    toToken:
                      name: Minerva Wallet SuperToken
                      symbol: MIVA
                      coinKey: MIVA
                      decimals: 18
                      chainId: 100
                      priceUSD: '1'
                      logoURI: https://minerva.digital/i/MIVA-Token_200x200.png
                      address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
                    fromAmount: '1000000000000000000'
                    slippage: 0.003
                    fromAddress: '0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0'
                    toAddress: '0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0'
                  estimate:
                    fromAmount: '1000000000000000000'
                    toAmount: '21922914496086353975'
                    toAmountMin: '21265227061203763356'
                    tool: 1inch
                    executionDuration: 30
                    approvalAddress: '0x1111111254fb6c44bac0bed2854e76f90643097d'
                    feeCosts: []
                    gasCosts:
                    - type: SEND
                      price: '1'
                      estimate: '252364'
                      limit: '315455'
                      amount: '252364'
                      amountUSD: '0.00'
                      token:
                        address: '0x0000000000000000000000000000000000000000'
                        symbol: xDai
                        decimals: 18
                        chainId: 100
                        name: xDai
                        coinKey: xDai
                        priceUSD: '1'
                        logoURI: https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png
                  integrator: fee-demo
                  includedSteps:
                  - id: a8dc011a-f52d-4492-9e99-21de64b5453a
                    type: swap
                    tool: 1inch
                    toolDetails:
                      key: 1inch
                      logoURI: https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/oneinch.svg
                      name: 1inch
                    action:
                      fromChainId: 100
                      toChainId: 100
                      fromToken:
                        address: '0x0000000000000000000000000000000000000000'
                        symbol: xDai
                        decimals: 18
                        chainId: 100
                        name: xDai
                        coinKey: xDai
                        priceUSD: '1'
                        logoURI: https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png
                      toToken:
                        name: Minerva Wallet SuperToken
                        symbol: MIVA
                        coinKey: MIVA
                        decimals: 18
                        chainId: 100
                        priceUSD: '1'
                        logoURI: https://minerva.digital/i/MIVA-Token_200x200.png
                        address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
                      fromAmount: '1000000000000000000'
                      slippage: 0.003
                      fromAddress: '0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0'
                      toAddress: '0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0'
                    estimate:
                      fromAmount: '1000000000000000000'
                      toAmount: '21922914496086353975'
                      toAmountMin: '21265227061203763356'
                      tool: 1inch
                      executionDuration: 30
                      approvalAddress: '0x1111111254fb6c44bac0bed2854e76f90643097d'
                      feeCosts: []
                      gasCosts:
                      - type: SEND
                        price: '1'
                        estimate: '252364'
                        limit: '315455'
                        amount: '252364'
                        amountUSD: '0.00'
                        token:
                          address: '0x0000000000000000000000000000000000000000'
                          symbol: xDai
                          decimals: 18
                          chainId: 100
                          name: xDai
                          coinKey: xDai
                          priceUSD: '1'
                          logoURI: https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png
        required: true
      tags:
      - advanced
      parameters:
      - name: x-lifi-api-key
        description: Authentication header, register in the LI.FI Partner Portal (https://portal.li.fi/ ) to get your API Key.
        schema:
          type: string
        in: header
      - name: skipSimulation
        description: Parameter to skip transaction simulation. The quote will be returned faster but the transaction gas limit won't be accurate.
        schema:
          type: boolean
        in: query
        required: false
      - name: mayanNonEvmPermitSignature
        description: Mayan specific option to bridge from non-EVM chain to Hyperliquid
        schema:
          type: boolean
        in: query
        required: false
      - name: svmPriorityFeeLevel
        description: Priority fee level for Solana Virtual Machine (SVM) transactions.
        schema:
          enum:
          - NORMAL
          - FAST
          - ULTRA
          type: string
        in: query
        required: false
      responses:
        '200':
          $ref: '#/components/responses/StepResponse'
        '400':
          $ref: '#/components/responses/InvalidStepRequest'
      summary: Populate a step with transaction data
      description: 'This endpoint expects a full `Step` object which usually is retrieved by calling the `/advanced/routes` endpoint and selecting the most suitable `Route`. Afterwards the transaction for every required `Step` can be retrieved using this endpoint.

        **Attention**: This request is more complex and intended to be used via our [JavaScript SDK](https://docs.li.fi/integrate-li.fi-js-sdk/install-li.fi-sdk).'
components:
  schemas:
    BridgesEnum:
      type: string
      description: Identifier for a bridge tool. Retrieve the latest bridge keys from the `/v1/tools` endpoint. Keywords such as `all`, `none`, `default`, and `[]` are also supported where applicable.
    Token:
      title: Root Type for Token
      description: Representation of a Token
      required:
      - address
      - chainId
      - decimals
      - name
      - symbol
      type: object
      properties:
        address:
          description: Address of the token
          type: string
        decimals:
          format: number
          description: Number of decimals the token uses
          type: number
        symbol:
          description: Symbol of the token
          type: string
        chainId:
          format: number
          description: Id of the token's chain
          type: number
        coinKey:
          description: Identifier for the token
          type: string
        name:
          description: Name of the token
          type: string
        logoURI:
          description: Logo of the token
          type: string
        priceUSD:
          description: Token price in USD
          type: string
      example:
        address: '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063'
        symbol: DAI
        decimals: 18
        chainId: 137
        name: (PoS) Dai Stablecoin
        coinKey: DAI
        priceUSD: '1'
        logoURI: https://static.debank.com/image/matic_token/logo_url/0x8f3cf7ad23cd3cadbd9735aff958023239c6a063/549c4205dbb199f1b8b03af783f35e71.png
    Chain:
      title: Root Type for Chain
      description: Representation of a chain
      required:
      - coin
      - id
      - key
      - mainnet
      - name
      type: object
      properties:
        key:
          description: Short string represenation of the chain
          type: string
        chainType:
          description: Type of the chain
          type: string
        name:
          description: Name of the chain
          type: string
        coin:
          description: The native coin of the chain
          type: string
        id:
          format: number
          description: Unique id of the chain
          type: number
        mainnet:
          description: Whether the chain is mainnet or not
          type: boolean
        logoURI:
          description: Logo of the chain
          type: string
        tokenlistUrl:
          description: Url to the list of available tokens
          type: string
        faucetUrls:
          description: List of available faucets
          type: array
          items:
            type: string
        multicallAddress:
          description: The multicall contract address
          type: string
        metamask:
          description: Information about the chain from metamask. Contains data about RPCs and block explorers
          type: object
          properties:
            chainId:
              type: string
            blockExplorerUrls:
              type: array
              items:
                type: string
            chainName:
              type: string
            nativeCurrency:
              type: object
              properties:
                name:
                  type: string
                symbol:
                  type: string
                decimals:
                  format: number
                  type: number
            rpcUrls:
              type: array
              items:
                type: string
        nativeToken:
          $ref: '#/components/schemas/Token'
          description: The native token info for the chain
      example:
        key: pol
        name: Polygon
        coin: MATIC
        id: 137
        mainnet: true
        logoURI: https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg
        tokenlistUrl: https://unpkg.com/quickswap-default-token-list@1.0.71/build/quickswap-default.tokenlist.json
        faucetUrls:
        - https://stakely.io/faucet/polygon-matic
        metamask:
          chainId: '0x89'
          blockExplorerUrls:
          - https://polygonscan.com/
          - https://explorer-mainnet.maticvigil.com/
          chainName: Matic(Polygon) Mainnet
          nativeCurrency:
            name: MATIC
            symbol: MATIC
            decimals: 18
          rpcUrls:
          - https://polygon-rpc.com/
          - https://polygon.llamarpc.com/
    PossibilitiesResponse:
      deprecated: true
      title: Root Type for PossibilitiesResponse
      description: Object listing current possibilities for any-to-any cross-chain-swaps based on the provided preferences
      required:
      - chains
      - tokens
      - exchanges
      - bridges
      type: object
      properties:
        chains:
          description: Possible chains that can be sent from or to
          type: array
          items:
            $ref: '#/components/schemas/Chain'
        tokens:
          description: Possible `Tokens` that can be transferred
          type: array
          items:
            $ref: '#/components/schemas/Token'
        exchanges:
          description: Possible exchanges that can be used for transfers
          type: array
          items:
            $ref: '#/components/schemas/ExchangeDefinition'
        bridges:
          description: Possible bridges that can be used for transfers
          type: array
          items:
            $ref: '#/components/schemas/BridgeDefinition'
      example:
        chains:
        - key: pol
          name: Polygon
          coin: MATIC
          id: 137
          mainnet: true
          logoURI: https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg
          tokenlistUrl: https://unpkg.com/quickswap-default-token-list@1.0.71/build/quickswap-default.tokenlist.json
          faucetUrls:
          - https://stakely.io/faucet/polygon-matic
          metamask:
            chainId: '0x89'
            blockExplorerUrls:
            - https://polygonscan.com/
            - https://explorer-mainnet.maticvigil.com/
            chainName: Matic(Polygon) Mainnet
            nativeCurrency:
              name: MATIC
              symbol: MATIC
              decimals: 18
            rpcUrls:
            - https://polygon-rpc.com/
            - https://polygon.llamarpc.com/
        tokens:
        - address: '0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1'
          decimals: 18
          symbol: ETH
          chainId: 100
          coinKey: ETH
          name: ETH
          logoURI: https://static.debank.com/image/xdai_token/logo_url/0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1/61844453e63cf81301f845d7864236f6.png
          priceUSD: '2254.1'
        - address: '0x7122d7661c4564b7c6cd4878b06766489a6028a2'
          decimals: 18
          symbol: MATIC
          chainId: 100
          coinKey: MATIC
          name: MATIC
          logoURI: https://etherscan.io/token/images/matictoken_28.png
          priceUSD: '0'
        - address: '0xca8d20f3e0144a72c6b5d576e9bd3fd8557e2b04'
          decimals: 18
          symbol: BNB
          chainId: 100
          coinKey: BNB
          name: BNB
          logoURI: https://assets.coingecko.com/coins/images/825/small/binance-coin-logo.png?1547034615
          priceUSD: '0'
        exchanges:
        - tool: paraswap
          chains:
          - 1
          - 56
          - 137
          - 43114
          - 3
          - 4
          - 42
        - tool: 1inch
          chains:
          - 1
          - 56
          - 137
          - 10
          - 43114
          - 100
        bridges:
        - tool: relay
          fromChainId: 100
          fromToken:
            address: '0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1'
            decimals: 18
            symbol: ETH
            chainId: 100
            coinKey: ETH
            name: ETH
            logoURI: https://static.debank.com/image/xdai_token/logo_url/0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1/61844453e63cf81301f845d7864236f6.png
            priceUSD: '2254.1'
          toChainId: 137
          toToken:
            address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619'
            decimals: 18
            symbol: ETH
            chainId: 137
            coinKey: ETH
            name: ETH
            logoURI: https://static.debank.com/image/matic_token/logo_url/0x7ceb23fd6bc0add59e62ac25578270cff1b9f619/61844453e63cf81301f845d7864236f6.png
            priceUSD: '2254.1'
          maximumTransfer: Infinity
          minimumTransfer: '1'
          swapFeeRate: '0.005'
          swapFeeMinimum: '0'
          swapFeeMaximum: Infinity
        - tool: relay
          fromChainId: 100
          fromToken:
            address: '0xddafbb505ad214d7b80b1f830fccc89b60fb7a83'
            decimals: 6
            symbol: USDC
            chainId: 100
            coinKey: USDC
            name: USDC
            logoURI: https://static.debank.com/image/xdai_token/logo_url/0xddafbb505ad214d7b80b1f830fccc89b60fb7a83/adee072b10b0db7c5bd7a28dd4fbe96f.png
            priceUSD: '1'
          toChainId: 137
          toToken:
            address: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174'
            decimals: 6
            symbol: USDC
            chainId: 137
            coinKey: USDC
            name: USDC
            logoURI: https://static.debank.com/image/matic_token/logo_url/0x2791bca1f2de4661ed88a30c99a7a9449aa84174/adee072b10b0db7c5bd7a28dd4fbe96f.png
            priceUSD: '1'
          maximumTransfer: Infinity
          minimumTransfer: '1'
          swapFeeRate: '0.005'
          swapFeeMinimum: '0'
          swapFeeMaximum: Infinity
        - tool: relay
          fromChainId: 100
          fromToken:
            address: '0x4ecaba5870353805a9f068101a40e0f32ed605c6'
            decimals: 6
            symbol: USDT
            chainId: 100
            coinKey: USDT
            name: USDT
            logoURI: https://static.debank.com/image/xdai_token/logo_url/0x4ecaba5870353805a9f068101a40e0f32ed605c6/66eadee7b7bb16b75e02b570ab8d5c01.png
            priceUSD: '1'
          toChainId: 137
          toToken:
            address: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f'
            decimals: 6
            symbol: USDT
            chainId: 137
            coinKey: USDT
            name: USDT
            logoURI: https://static.debank.com/image/matic_token/logo_url/0xc2132d05d31c914a87c6611c10748aeb04b58e8f/66eadee7b7bb16b75e02b570ab8d5c01.png
            priceUSD: '1'
          maximumTransfer: Infinity
          minimumTransfer: '1'
          swapFeeRate: '0.005'
          swapFeeMinimum: '0'
          swapFeeMaximum: Infinity
        - tool: hop
          fromChainId: 137
          fromToken:
            address: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f'
            decimals: 6
            symbol: USDT
            chainId: 137
            coinKey: USDT
            name: USDT
            logoURI: https://static.debank.com/image/matic_token/logo_url/0xc2132d05d31c914a87c6611c10748aeb04b58e8f/66eadee7b7bb16b75e02b570ab8d5c01.png
            priceUSD: '1'
          toChainId: 100
          toToken:
            address: '0x4ecaba5870353805a9f068101a40e0f32ed605c6'
            decimals: 6
            symbol: USDT
            chainId: 100
            coinKey: USDT
            name: USDT
            logoURI: https://static.debank.com/image/xdai_token/logo_url/0x4ecaba5870353805a9f068101a40e0f32ed605c6/66eadee7b7bb16b75e02b570ab8d5c01.png
            priceUSD: '1'
          maximumTransfer: Infinity
          minimumTransfer: '1'
          swapFeeRate: '0.005'
          swapFeeMinimum: '0'
          swapFeeMaximum: Infinity
        - tool: hop
          fromChainId: 137
          fromToken:
            address: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174'
            decimals: 6
            symbol: USDC
            chainId: 137
            coinKey: USDC
            name: USDC
            logoURI: https://static.debank.com/image/matic_token/logo_url/0x2791bca1f2de4661ed88a30c99a7a9449aa84174/adee072b10b0db7c5bd7a28dd4fbe96f.png
            priceUSD: '1'
          toChainId: 100
          toToken:
            address: '0xddafbb505ad214d7b80b1f830fccc89b60fb7a83'
            decimals: 6
            symbol: USDC
            chainId: 100
            coinKey: USDC
            name: USDC
            logoURI: https://static.debank.com/image/xdai_token/logo_url/0xddafbb505ad214d7b80b1f830fccc89b60fb7a83/adee072b10b0db7c5bd7a28dd4fbe96f.png
            priceUSD: '1'
          maximumTransfer: Infinity
          minimumTransfer: '1'
          swapFeeRate: '0.005'
          swapFeeMinimum: '0'
          swapFeeMaximum: Infinity
        - tool: hop
          fromChainId: 137
          fromToken:
            address: '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063'
            decimals: 18
            symbol: DAI
            chainId: 137
            coinKey: DAI
            name: DAI
            logoURI: https://static.debank.com/image/matic_token/logo_url/0x8f3cf7ad23cd3cadbd9735aff958023239c6a063/549c4205dbb199f1b8b03af783f35e71.png
            priceUSD: '1'
          toChainId: 100
          toToken:
            address: '0x0000000000000000000000000000000000000000'
            decimals: 18
            symbol: DAI
            chainId: 100
            coinKey: DAI
            name: DAI
            logoURI: https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png
            priceUSD: '1'
          maximumTransfer: Infinity
          minimumTransfer: '1'
          swapFeeRate: '0.005'
          swapFeeMinimum: '0'
          swapFeeMaximum: Infinity
    RoutesResponse:
      title: Root Type for RoutesResponse
      description: A list of routes that can be used to realize the described transfer of tokens
      required:
      - routes
      type: object
      properties:
        routes:
          description: List of possible `Routes` for the given transfer
          type: array
          items:
            $ref: '#/components/schemas/Route'
        unavailableRoutes:
          description: An object representing the routes that are unavailable for the given transfer
          type: array
          items:
            $ref: '#/components/schemas/UnavailableRoutes'
      example:
        routes:
        - id: '0x1e21fad9c26fff48b67ae2925f878e43bf81211da8b1cd9b7faa8bfd8d7ea9d9'
          fromChainId: 100
          fromAmountUSD: '0.05'
          fromAmount: '1000000000000000000'
          fromToken:
            address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
            symbol: MIVA
            decimals: 18
            chainId: 100
            name: Minerva Wallet SuperToken
            coinKey: MIVA
            priceUSD: '0.04547537276751318'
            logoURI: ''
          toChainId: 137
          toAmountUSD: '0.00'
          toAmount: '999500000000000000'
          toAmountMin: '999500000000000000'
          toToken:
            address: '0xc0b2983a17573660053beeed6fdb1053107cf387'
            symbol: MIVA
            decimals: 18
            chainId: 137
            name: Minerva Wallet SuperToken
            coinKey: MIVA
            priceUSD: '0'
            logoURI: ''
          gasCostUSD: '0.00'
          steps:
          - id: '0x48f0a2f93b0d0a9dab992d07c46bca38516c945101e8f8e08ca42af05b9e6aa9'
            type: cross
            tool: relay
            action:
              fromChainId: 100
              toChainId: 137
              fromToken:
                address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
                symbol: MIVA
                decimals: 18
                chainId: 100
                name: Minerva Wallet SuperToken
                coinKey: MIVA
                priceUSD: '0.04547537276751318'
                logoURI: ''
              toToken:
                address: '0xc0b2983a17573660053beeed6fdb1053107cf387'
                symbol: MIVA
                decimals: 18
                chainId: 137
                name: Minerva Wallet SuperToken
                coinKey: MIVA
                priceUSD: '0'
                logoURI: ''
              fromAmount: '1000000000000000000'
              slippage: 0.003
            estimate:
              fromAmount: '1000000000000000000'
              toAmount: '999500000000000000'
              toAmountMin: '999500000000000000'
              approvalAddress: '0x115909BDcbaB21954bEb4ab65FC2aBEE9866fa93'
              feeCosts:
              - name: Gas Fee
                description: Covers gas expense for sending funds to user on receiving chain.
                percentage: '0'
                token:
                  address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
                  symbol: MIVA
                  decimals: 18
                  chainId: 100
                  name: Minerva Wallet SuperToken
                  coinKey: MIVA
                  priceUSD: '0.04547537276751318'
                  logoURI: ''
                amount: '0'
                amountUSD: '0.00'
                included: true
              - name: Relay Fee
                description: Covers gas expense for claiming user funds on receiving chain.
                percentage: '0'
                token:
                  address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
                  symbol: MIVA
                  decimals: 18
                  chainId: 100
                  name: Minerva Wallet SuperToken
                  coinKey: MIVA
                  priceUSD: '0.04547537276751318'
                  logoURI: ''
                amount: '0'
                amountUSD: '0.00'
              - name: Router Fee
                description: Router service fee.
                percentage: '0.0005'
                token:
                  address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
                  symbol: MIVA
                  decimals: 18
                  chainId: 100
                  name: Minerva Wallet SuperToken
                  coinKey: MIVA
                  priceUSD: '0.04547537276751318'
                  logoURI: ''
                amount: '500000000000000'
                amountUSD: '22737686383756.59'
              gasCosts:
              - type: SEND
                price: '1.26'
                estimate: '140000'
                limit: '175000'
                amount: '176400'
                amountUSD: '0.00'
                token:
                  address: '0x0000000000000000000000000000000000000000'
                  symbol: xDai
                  decimals: 18
                  chainId: 100
                  name: xDai
                  coinKey: xDai
                  priceUSD: '1'
                  logoURI: https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png
              data:
                bid:
                  user: '0x53F68B2186E4a4aB4dD976eD32de68db45BA360b'
                  router: '0xeE2Ef40F688607CB23618d9312d62392786d13EB'
                  initiator: '0x53F68B2186E4a4aB4dD976eD32de68db45BA360b'
                  sendingChainId: 100
                  sendingAssetId: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
                  amount: '1000000000000000000'
                  receivingChainId: 137
                  receivingAssetId: '0xc0b2983a17573660053beeed6fdb1053107cf387'
                  amountReceived: '999500000000000000'
                  receivingAddress: '0x10fBFF9b9450D3A2d9d1612d6dE3726fACD8809E'
                  transactionId: '0x48f0a2f93b0d0a9dab992d07c46bca38516c945101e8f8e08ca42af05b9e6aa9'
                  expiry: 1643364189
                  callDataHash: '0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
                  callTo: '0x0000000000000000000000000000000000000000'
                  encryptedCallData: 0x
                  sendingChainTxManagerAddress: '0x115909BDcbaB21954bEb4ab65FC2aBEE9866fa93'
                  receivingChainTxManagerAddress: '0x6090De2EC76eb1Dc3B5d632734415c93c44Fd113'
                  bidExpiry: 1643105290
                gasFeeInReceivingToken: '0'
                totalFee: '500000000000000'
                metaTxRelayerFee: '0'
                routerFee: '500000000000000'
            integrator: fee-demo
        - id: '0xb785f52e68f8a6fb147d5e392e06f122c1a418be84bdc28de0f311b91fa5e57e'
          fromChainId: 100
          fromAmountUSD: '0.05'
          fromAmount: '1000000000000000000'
          fromToken:
            address: '0x63e62989d9eb2d37dfdb1f93a22f063635b07d51'
            symbol: MIVA
            decimals: 18
            chainId: 100
            name: Minerva Wallet SuperToken
            coinKey: MIVA
            priceUSD: '0.04547537276751318'
            logoURI: ''
          toChainId: 137
          toAmountUSD: '0.00'
          toAmount: '941511949935063841'
          toAmountMin: '913266591437011926'
          toToken:
            address: '0xc0b2983a17573660053beeed6fdb

# --- truncated at 32 KB (128 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/lifi/refs/heads/main/openapi/lifi-advanced-api-openapi.yml