Skip to navigation

Create an onramp

View as Markdown

Creates a fiat-to-crypto transaction. In local mock mode, use KES mobile money as the source and Base Sepolia USDC as the destination.

Headers

idempotency-keystringOptional>=1 character
Unique request key. Reuse the same value when retrying the same transaction.

Request

Creates a fiat-to-crypto transaction.

amountstringRequiredformat: "^(?:0|[1-9]\d*)(?:\.\d+)?$"
Amount of blockchain asset the customer will receive.
sourceobjectRequired
A fiat payment account.
destinationobjectRequired
An account on a supported blockchain network.
source_amountstringOptionalformat: "^(?:0|[1-9]\d*)(?:\.\d+)?$"
Fiat amount the customer will pay.

Response

The onramp was accepted and is processing.
txIdstring
status"processing"
instructionsobject

Errors

400
Bad Request Error
422
Unprocessable Entity Error
500
Internal Server Error