Skip to main content
POST
/
api
/
v1
/
business-onramp
/
quote
Get Onramp Quote
curl --request POST \
  --url https://aboki-b2b-eobk.onrender.com/api/v1/business-onramp/quote \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "amount": 123,
  "targetToken": "<string>",
  "targetNetwork": "<string>"
}'
{
  "success": true,
  "data": {
    "amount": 123,
    "targetToken": "<string>",
    "targetNetwork": "<string>",
    "exchangeRate": 123,
    "finalTokenAmount": 123,
    "smartContractData": {
      "usdcValue": 123,
      "bestRoute": "<string>",
      "liquidityAdequate": true
    },
    "jupiterData": {
      "priceImpact": 123,
      "estimatedConfirmation": "<string>"
    },
    "pricingInfo": {
      "currentUsdcRate": "<string>",
      "source": "<string>"
    }
  }
}

Get Onramp Quote

Calculate how much crypto tokens your customer will receive for a specific NGN amount. Works across Base, Solana, and Ethereum networks with real-time pricing.
Authorization
string
required
Your Public Key from the dashboard. Format: Bearer pk_live_your_key_here
Content-Type
string
required
Always use: application/json

Body Parameters

amount
number
required
NGN amount customer wants to spend (e.g., 50000 for ₦50,000)
targetToken
string
required
Token symbol customer wants to receive (e.g., USDC, ENB, ETH, SOL)
targetNetwork
string
required
Blockchain network: base, ethereum, or solana

Response

success
boolean
Whether the quote was generated successfully
data
object
amount
number
NGN amount being converted
targetToken
string
Token customer will receive
targetNetwork
string
Blockchain network for the token
exchangeRate
number
Current USD to NGN exchange rate
finalTokenAmount
number
Exact amount of tokens customer will receive
smartContractData
object
usdcValue
number
USD value for Base network calculations
bestRoute
string
Optimal trading route on Base DEX
liquidityAdequate
boolean
Whether there’s sufficient liquidity
jupiterData
object
priceImpact
number
Price impact percentage for Solana trades
estimatedConfirmation
string
Expected confirmation time
pricingInfo
object
currentUsdcRate
string
Current USDC to NGN rate
source
string
Pricing data source

Example Response

{
  "success": true,
  "data": {
    "amount": 50000,
    "targetToken": "ENB",
    "targetNetwork": "base",
    "exchangeRate": 398.01,
    "finalTokenAmount": 123.74,
    "smartContractData": {
      "usdcValue": 30.25,
      "bestRoute": "V3 Direct (0.3% fee)",
      "liquidityAdequate": true
    },
    "pricingInfo": {
      "currentUsdcRate": "1 USDC = ₦1,720",
      "source": "smart_contract_dex_with_current_rates"
    }
  }
}





I