cURL
curl --request POST \ --url https://api.sandbox.sardine.ai/v1/onramp \ --header 'Content-Type: application/json' \ --data '{ "userId": "abc123", "fromCurrency": "USD", "toCurrency": "ETH", "amount": 100, "chain": "ethereum", "paymentMethodId": "pay-987654321", "depositAddress": "0xabc123def456ghi789jkl000mno111pqrs222tuv" }'
{ "orderId": "ONR-20250417-001", "status": "pending", "estimatedDelivery": "2025-04-17T15:45:00Z" }
This endpoint is used to initiate an onramp transaction, converting fiat to crypto and delivering the crypto to a destination wallet.
Onramp order successfully created
The response is of type object.
object