Get a fee estimate and expected output amount before executing 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.
Basic Auth header with your app ID as the username and your app secret as the password.
ID of your Privy app.
Request authorization signature. If multiple signatures are required, they should be comma separated.
Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.
ID of the wallet.
Request body for requesting a quote for a cross-asset or cross-chain (DADC) transfer.
Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this variant for first-class assets maintained by Privy.
{
"asset": "usdc",
"amount": "10.5",
"chain": "base"
}The destination address for a token transfer. Optionally specify a different asset or chain for cross-asset or cross-chain transfers.
{
"address": "0xB00F0759DbeeF5E543Cc3E3B07A6442F5f3928a2"
}Whether the amount refers to the input token or output token.
exact_input, exact_output Maximum allowed slippage in basis points (1 bps = 0.01%).
0 <= x <= 10000Optional fee configuration for the transfer, if omitted, only Privy and bridge provider fees are applied.
{ "type": "total_fee_bps", "value": 50 }Transfer quote retrieved successfully.
Response containing a quote for a cross-asset or cross-chain (DADC) transfer.
Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this variant for first-class assets maintained by Privy.
{
"asset": "usdc",
"amount": "10.5",
"chain": "base"
}The destination address for a token transfer. Optionally specify a different asset or chain for cross-asset or cross-chain transfers.
{
"address": "0xB00F0759DbeeF5E543Cc3E3B07A6442F5f3928a2"
}Estimated output amount in decimals
Estimated fees in USD
Estimated fee paid to the relayer.
{
"type": "privy",
"recipient": "0x1234567890abcdef1234567890abcdef12345678",
"amount": "0.20"
}Quote expiry as unix timestamp (seconds)
Whether the amount refers to the input token or output token.
exact_input, exact_output