Skip to main content
GET
/
quote
curl -X GET "https://onramp.staging-portal.abs.xyz/quote?country=US&destinationCurrency=USDC_BASE&sourceCurrency=USD&amount=100&paymentMethod=CREDIT_DEBIT_CARD&walletAddress=0xfc61f1b7701f6765ff548b3bca403cdaa723d260"
{
  "quotes": [
    {
      "transactionType": "CRYPTO_PURCHASE",
      "sourceAmount": 100,
      "sourceAmountWithoutFees": 93.3317,
      "fiatAmountWithoutFees": 93.3317,
      "destinationAmountWithoutFees": null,
      "sourceCurrencyCode": "USD",
      "countryCode": "US",
      "totalFee": 6.68,
      "networkFee": null,
      "transactionFee": 5.5,
      "destinationAmount": 68.017348,
      "destinationCurrencyCode": "USDC_BASE",
      "exchangeRate": 1.468,
      "paymentMethodType": "CREDIT_DEBIT_CARD",
      "customerScore": 20,
      "serviceProvider": "TRANSAK",
      "institutionName": null,
      "lowKyc": null,
      "partnerFee": 1,
      "walletAddress": "0xfc61f1b7701f6765ff548b3bca403cdaa723d260",
      "toAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "relayFee": 0.18
    }
  ]
}

Query Parameters

country
string
required
The ISO 3166 2-digit country code
destinationCurrency
string
required
The code for the Crypto Currency (e.g., “ETH_BASE”, “USDC_BASE”)
sourceCurrency
string
required
The code for the Fiat Currency (e.g., “USD”, “CAD”)
amount
string
required
The amount (in source currency) to buy
paymentMethod
string
required
The identifier for the Payment Method
walletAddress
string
required
The wallet address for the user making this request (does not have to be AGW)

Response

quotes
array
required
Array of available quotes from different providers
curl -X GET "https://onramp.staging-portal.abs.xyz/quote?country=US&destinationCurrency=USDC_BASE&sourceCurrency=USD&amount=100&paymentMethod=CREDIT_DEBIT_CARD&walletAddress=0xfc61f1b7701f6765ff548b3bca403cdaa723d260"
{
  "quotes": [
    {
      "transactionType": "CRYPTO_PURCHASE",
      "sourceAmount": 100,
      "sourceAmountWithoutFees": 93.3317,
      "fiatAmountWithoutFees": 93.3317,
      "destinationAmountWithoutFees": null,
      "sourceCurrencyCode": "USD",
      "countryCode": "US",
      "totalFee": 6.68,
      "networkFee": null,
      "transactionFee": 5.5,
      "destinationAmount": 68.017348,
      "destinationCurrencyCode": "USDC_BASE",
      "exchangeRate": 1.468,
      "paymentMethodType": "CREDIT_DEBIT_CARD",
      "customerScore": 20,
      "serviceProvider": "TRANSAK",
      "institutionName": null,
      "lowKyc": null,
      "partnerFee": 1,
      "walletAddress": "0xfc61f1b7701f6765ff548b3bca403cdaa723d260",
      "toAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "relayFee": 0.18
    }
  ]
}
I