Get aggregated ramp quotes
Changed onReturns on-ramp or off-ramp quotes from all eligible providers, sorted by cheapest total cost.
Request
- Base URLhttps://api.chainrails.io/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Type of quote to get
ISO 4217 fiat currency code
Amount of crypto the user wants to receive (on-ramp) or sell (off-ramp). For off-ramp this is the amount of the selected source token.
Destination blockchain where user wants funds (required for on-ramp)
Source blockchain where user will send crypto from (required for off-ramp)
Token symbol for cryptoAmount (defaults to USDC)
ISO 3166-1 alpha-2 country code of the user. Required for multi-country currencies (e.g., XOF — pass "BJ" for Benin, "SN" for Senegal). Falls back to the currency's default country if omitted.
If true, only return quotes with direct transfer channels (no widget/redirect)
User's email. When supplied, recommendation can prefer providers where the user is already KYC-cleared.
Response
Aggregated ramp quotes
Changes
- breaking
added the new required
queryrequest parametertype - info
added the new optional
queryrequest parameteramountSymbol - info
added the new optional
queryrequest parametersourceChain - info
added the new optional
queryrequest parameteruserEmail - info
the
queryrequest parameterdestinationChainbecame optional - info
added the new enum value
SOLANA_MAINNETto thequeryrequest parameterdestinationChain - info
added the new enum value
SOLANA_TESTNETto thequeryrequest parameterdestinationChain - info
added the new enum value
TRON_MAINNETto thequeryrequest parameterdestinationChain
- breaking
- info
endpoint added
- info