Ramp
Create a ramp order
Changed onCreates an on-ramp or off-ramp order with the selected provider.
post/ramp/orders
Request
- Base URLhttps://api.chainrails.io/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"type": "on-ramp",
"provider": "YELLOW_CARD",
"fiatCurrency": "NGN",
"cryptoAmount": 10,
"destinationChain": "BASE_MAINNET",
"sourceChain": "BASE_MAINNET",
"amountSymbol": "USDC",
"recipientAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"senderAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"countryCode": "NG",
"userEmail": "user@example.com",
"fields": {
"phoneNumber": "+2348012345678"
}
}Response
Ramp order created successfully
Changes
- info
added the new
YELLOW_CARDenum value to the request property
- info
- breaking
added the new required request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became optional - info
the request property
became optional - info
added the new
GUARDARIANenum value to the request property - info
added the new
SOLANA_MAINNETenum value to the request property - info
added the new
SOLANA_TESTNETenum value to the request property - info
added the new
TRON_MAINNETenum value to the request property
- breaking