Skip to main content
POST
/
clients
/
me
/
integrations
/
lifi
/
quote
Get a Li.Fi swap/bridge quote
curl --request POST \
  --url https://api.portalhq.io/api/v3/clients/me/integrations/lifi/quote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fromChain": "<string>",
  "toChain": "<string>",
  "fromToken": "<string>",
  "toToken": "<string>",
  "fromAmount": "<string>",
  "fromAddress": "<string>",
  "toAddress": "<string>",
  "fromAmountForGas": "<string>",
  "integrator": "<string>",
  "fee": 123,
  "maxPriceImpact": 123,
  "order": "RECOMMENDED",
  "slippage": 123,
  "referrer": "<string>",
  "allowBridges": [
    "<string>"
  ],
  "denyBridges": [
    "<string>"
  ],
  "preferBridges": [
    "<string>"
  ],
  "allowExchanges": [
    "<string>"
  ],
  "denyExchanges": [
    "<string>"
  ],
  "preferExchanges": [
    "<string>"
  ]
}
'
{
  "data": {
    "rawResponse": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.portalhq.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Client API Key or Client Session Token (CST). Pass as a Bearer token in the Authorization header.

Body

application/json
fromChain
string
required

Source chain ID in CAIP-2 format (e.g. eip155:1).

toChain
string
required

Destination chain ID in CAIP-2 format (e.g. eip155:137).

fromToken
string
required

Source token address or symbol.

toToken
string
required

Destination token address or symbol.

fromAmount
string
required

Amount to swap in the smallest unit of the source token.

fromAddress
string
required

Sender address. Must be a valid address for the source chain.

toAddress
string

Recipient address. Defaults to fromAddress when omitted.

fromAmountForGas
string

Amount of the source token to swap into destination-chain gas before bridging.

integrator
string

Override the integrator identifier for this request.

fee
number

Integrator fee as a decimal (e.g. 0.005 for 0.5%).

maxPriceImpact
number

Maximum acceptable price impact as a decimal.

order
enum<string>

Route ordering preference.

Available options:
RECOMMENDED,
FASTEST,
CHEAPEST
slippage
number

Maximum slippage as a decimal (e.g. 0.01 for 1%).

referrer
string

Referrer address for fee attribution.

allowBridges
string[]

Bridges to include.

denyBridges
string[]

Bridges to exclude.

preferBridges
string[]

Bridges to prefer when ranking routes.

allowExchanges
string[]

Exchanges to include.

denyExchanges
string[]

Exchanges to exclude.

preferExchanges
string[]

Exchanges to prefer when ranking routes.

Response

Quote retrieved successfully

data
object