On-Ramp Overview
By integrating Particle’s on-ramp solutions, you can:- Enable users to purchase cryptocurrencies directly with fiat currency.
- Support a wide array of fiat currencies and cryptocurrencies.
- Provide a seamless onboarding process for new users, increasing engagement and retention.
Supported Currencies
Particle supports a diverse range of fiat currencies and cryptocurrencies, ensuring broad compatibility with various payment methods.Live Demos
Explore live demos to see how Particle’s On-Ramp solutions work in real-time:Alternatively, access the On-Ramp page directly via the ‘Buy’ button in the wallet interface.
SDK Integration
Integrating the on-ramp feature into your platform allows for extensive customization of the buy/sell experience. Below are the parameters you can use to tailor the user experience:Name | Description | Type |
---|---|---|
network | Blockchain network to be used (e.g., Solana, Ethereum, Binance Smart Chain). | string |
fiatCoin | The fiat currency the user wishes to use. | string |
cryptoCoin | The cryptocurrency the user wishes to buy or sell. | string |
fiatAmt | The amount of fiat currency the user wants to spend (for buying crypto). | number |
cryptAmt | The amount of cryptocurrency the user wants to sell. | number |
fixFiatCoin | Prevent the user from changing the fiat currency. | boolean |
fixCryptoCoin | Prevent the user from changing the cryptocurrency. | boolean |
fixFiatAmt | Lock the fiat amount, preventing the user from changing it. | boolean |
walletAddress | Wallet address where the purchased cryptocurrency should be sent. | string |
theme | Interface theme: light or dark . | string |
language | Language selection: en , zh-CN , zh-TW , ja , ko . | string |
Example usage
To integrate, simply pass the desired options into the SDKs API, or construct a URL with the corresponding parameters. Below is an example of using theopenBuy
method from the useAuthCore
hook (from Particle Auth).
App.tsx
Build an On-Ramp URL
Alternatively, you can manually build a URL with the desired parameters to redirect users directly to the On-Ramp buy page.App.tsx