Skip to main content
POST
/
v1
/
addresses
/
quotes
/
swap
Create address swap quote
curl --request POST \
  --url https://api.xentfi.com/v1/addresses/quotes/swap \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --header 'orgId: <api-key>' \
  --data '
{
  "srcAssetId": "asset_eth_123",
  "dstAssetId": "asset_usdc_456",
  "amount": "1000000000000000000",
  "masterId": "master_123456789",
  "srcBlockchainId": "eth_mainnet",
  "dstBlockchainId": "base_mainnet",
  "slippageTolerance": "0.5"
}
'
{
  "quote": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.xentfi.com/llms.txt

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

Authorizations

apiKey
string
header
required
orgId
string
header
required

Body

application/json
srcAssetId
string
required

ID of the source asset to swap

Example:

"asset_eth_123"

dstAssetId
string
required

ID of the destination asset to receive

Example:

"asset_usdc_456"

amount
string
required

Amount of source asset to swap

Example:

"1000000000000000000"

masterId
string
required

ID of the master wallet

Example:

"master_123456789"

srcBlockchainId
string
required

ID of the source blockchain

Example:

"eth_mainnet"

dstBlockchainId
string
required

ID of the destination blockchain

Example:

"base_mainnet"

slippageTolerance
string
required

Maximum slippage tolerance percentage (e.g., "0.5" for 0.5%)

Example:

"0.5"

addressId
string

ID of the deposit address (alternative to masterId)

Example:

"addr_123456789"

destinationAddress
string

Optional custom destination address

Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f0b5b5"

feeAssetId
string

ID of the asset to use for gas fees

Example:

"asset_eth_123"

Response

Swap quote created

quote
object