Skip to main content
POST
/
deposits
/
quote
cURL
curl --request POST \
  --url https://sandbox.onconsul.com/v1/deposits/quote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "<string>",
  "source_bank_account_id": "<string>",
  "is_receiver_amount": true
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "destination": {
    "amount": "<string>",
    "currency": "USDC",
    "chain": "ethereum",
    "min_amount": "<string>",
    "payment_method": "usd_ach"
  },
  "id": "<string>",
  "market_rate": "<string>",
  "source": {
    "amount": "<string>",
    "currency": "USDC",
    "account_id": "<string>",
    "chain": "ethereum",
    "payment_method": "usd_ach"
  },
  "time_estimate_seconds": 123,
  "expires_at": "2023-11-07T05:31:56Z",
  "fee": {
    "currency": "USDC",
    "flat_fee": "<string>",
    "percentage_fee": "<string>"
  }
}
Request a quote to convert fiat currency into USDC. The currency and payment rail are determined by the linked bank account. The response includes the exchange rate, fees, and estimated settlement time.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
string<decimal>
required
source_bank_account_id
string
required
is_receiver_amount
boolean

Response

OK

created_at
string<date-time>
required
destination
object
required
id
string
required
market_rate
string<decimal>
required
source
object
required
time_estimate_seconds
integer<int64> | null
required
expires_at
string<date-time>
fee
object