> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Swap Quote

> Get a price quote for a cross-chain or same-chain token swap

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer YOUR_ACCESS_TOKEN`
</ParamField>

<ParamField body="sourceAsset" type="string" required>
  The source asset identifier, e.g. `USDC_SOL`, `ETH`.
</ParamField>

<ParamField body="destinationAsset" type="string" required>
  The destination asset identifier, e.g. `USDC_ETH`, `MATIC`.
</ParamField>

<ParamField body="amount" type="string" required>
  The amount to swap in the source token's native units, e.g. `"100.00"`.
</ParamField>

<ParamField body="sourceAddress" type="string">
  The source wallet address. Optional — defaults to the user's wallet for the source asset.
</ParamField>

<ParamField body="destinationAddress" type="string">
  The destination wallet address. Optional — defaults to the user's wallet for the destination asset.
</ParamField>

<RequestExample>
  ```bash theme={null}
  curl -X POST 'https://crypto-api.yativo.com/api/v1/swap/quote' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
      "sourceAsset": "USDC_SOL",
      "destinationAsset": "ETH_Base",
      "amount": "10",
      "destinationAddress": "0xAbCd1234EfGh5678IjKl9012MnOp3456QrSt7890"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "quoteId": "qt_abc123def456",
      "sourceAsset": "USDC_SOL",
      "destinationAsset": "ETH_Base",
      "inputAmount": "10",
      "estimatedOutput": "0.003812",
      "exchangeRate": "0.0003812",
      "fee": {
        "amount": "0.15",
        "currency": "USDC"
      },
      "expiresAt": "2026-03-28T10:05:00.000Z"
    }
  }
  ```
</ResponseExample>
