The transfer quote endpoint returns a fee breakdown and estimated output amount for a cross-chain or cross-asset transfer before executing it. Use quotes to show users what they will receive and what fees apply before they confirm a transfer.Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
The quote endpoint is only supported for cross-chain or cross-asset transfers (i.e. those that
specify
destination.chain or destination.asset). Same-chain, same-asset transfers do not
require a quote.Understanding fees
Every cross-chain transfer includes up to three fee components:- Relayer fee — paid to the bridge provider for routing the transfer. This varies with network conditions and liquidity.
- Developer fee — fees to the app developer.
estimated_output_amount already reflects all fees — it is what the recipient will receive.
Usage
To get a quote via REST API, make aPOST request to :
Body
The source asset, amount, and chain for the transfer.
The destination for the transfer.
Determines whether
source.amount is the input quantity. Defaults to exact_input.Optional fee configuration to apply to the transfer.
Response
The source asset, amount, and chain from the request.
The destination address, asset, and chain from the request.
The estimated amount the recipient will receive, as a decimal string in destination token units
(e.g.
"9.97" for 9.97 USDC).An array of fee line items that make up the total transfer cost. Each item has a
type and an
amount in USD.Unix timestamp (in seconds) after which the quote is no longer valid. Execute the transfer before
this time to receive the quoted output amount and fees.
Example
- Node SDK
- REST API
Quote expiry
Quotes expire quickly — typically within a few minutes. If you execute a transfer afterexpires_at, the request will be rejected. Fetch a fresh quote before each transfer execution.
Limitations
Same-chain transfers not supported
Same-chain transfers not supported
The quote endpoint requires either
destination.chain or destination.asset to differ from the
source. Same-chain, same-asset transfers have no fees to quote.Custom tokens not supported
Custom tokens not supported
Transfers using
asset_address (custom token contracts) are not supported for cross-chain
quotes. Only named assets (usdc, usdt, eth, etc.) can be quoted.
