Get Transfer Quote
Changed onGet a price quote for a cross-asset or cross-chain (DADC) transfer. Only available for named-asset transfers where the source and destination asset or chain differ.
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/v1/wallets/{wallet_id}/transfer/quote
- AuthHTTP basic
Path parameters
ID of the wallet.
Headers
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.
Request body
Example request
{
"source": {
"asset": "ousd",
"amount": "10.5",
"chain": "tempo"
},
"destination": {
"address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"asset": "ousd",
"chain": "base"
}
}Response
Transfer quote retrieved successfully.
Example response
{
"source": {
"asset": "usdc",
"amount": "10.50",
"chain": "tempo"
},
"destination": {
"address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"asset": "usdc",
"chain": "arbitrum"
},
"estimated_input_amount": "10.50",
"estimated_output_amount": "10.45",
"estimated_fees": [
{
"type": "relayer",
"amount": "0.20"
},
{
"type": "privy",
"amount": "0.20"
},
{
"type": "developer",
"recipient": "0x1234567890abcdef1234567890abcdef12345678",
"amount": "0.60"
}
],
"estimated_gas": {
"base_amount": "100000000000000",
"amount": "0.0001",
"gas_asset": "ETH"
},
"expires_at": 1715200000
}Changes
- breaking
the response property
//became optional for the status - breaking
the response property
//became optional for the status - info
the request property
//became optional - info
the request property
//became optional
- breaking
- info
added the new optional request property
- info
request property
//deprecated - info
request property
//deprecated - info
the response property
became required for the status - info
response property
source/anyOf[subschema #1: NamedTokenTransferSource]/amountdeprecated - info
response property
source/anyOf[subschema #2: CustomTokenTransferSource]/amountdeprecated - info
added the required property
to the response with the status
- info