🔆 Control the fiat or crypto options for the user
Fiat options
The Rampnalysis widget automatically defaults to the user's local currency based on their IP address and the cheapest payment method. If you want to set the fiat payment options for your users you can use the below parameters:
fiatCurrency
The fiat currency you want to limit the user to buy or sell cryptocurrency with. Users will not be able to change the selection.
amountFiat
The amount of fiat currency that you want the
Crypto options
The Rampnalysis widget automatically defaults to ETH on Ethereum as the crypto option. Users can choose any of the other supported cryptocurrencies to purchase.
If you want to set the default and/or limit the cryptocurrency or blockchain options for your users you can use the below parameters.
Crypto Currency
defaultCrypto
The default cryptocurrency you would prefer the user to buy. Users will still be able to select another cryptocurrency.
crypto
The cryptocurrency you want the user to buy. Users will not be able to select another cryptocurrency.
The user won't be able to select between multiple networks for the same cryptocurrency unless you pass the networks
parameter (e.g. DAI_POLYGON
).
onlyCrypto
A comma-separated list of cryptocurrencies that you want to allow your users to buy. Only these cryptocurrencies will be shown to the user in the widget.
Format is a string of comma separated values each of which must represent a valid cryptocurrency code, e.g. ETH_POLYGON,DAI_ETH,USDT_BSC
.
Blockchain network
For blockchains with multiple supported cryptocurrencies the network is specified by its name, e.g. ETHEREUM
or SOLANA
. This way you can limit users to all of the cryptocurrencies on a particular blockchain.
defaultNetwork
The default blockchain network you would prefer the user to buy cryptocurrencies on. Users will still be able to select another network, e.g. POLYGON
.
onlyCryptoNetworks
The blockchain networks you want the customer to buy cryptocurrencies on. Users will not be able to select another network, e.g. ETHEREUM
.
By default our widget shows all crypto networks.
excludeCryptoNetworks
A comma-separated list of blockchain networks that you don't want to allow your users to buy cryptocurrencies on. Only these networks' cryptocurrencies will be shown in the widget.
Format is a string of comma-separated values each of which must represent a valid network name, e.g. ETHEREUM,OPTIMISM,ARBITRUM
.
recommendedCrypto
A comma-separated list of cryptocurrencies to highlight as "Popular" in the widget, e.g., ETH,CBANK_BSC
. These cryptocurrencies will be tagged as "Popular" and displayed in the order listed, allowing for a tailored showcase of preferred or in-demand currencies.
defaultLiteKYC
By default, the system prioritizes Lite KYC onramps. The default configuration is set to true
, indicating that Lite KYC is enabled. If you wish to disable this feature, you can do so by adding defaultLiteKYC=false
to the configuration settings.
Swap options
The Rampnalysis widget automatically defaults to ETH on Ethereum for fromToken
and USDC on Ethereum for toToken
. Users can choose any of the other supported cryptocurrencies to swap.
If you want to set the default the cryptocurrency or blockchain options for your users you can use the below parameters.
fromToken
The default cryptocurrency you would prefer the user to swap from. Users will still be able to select another cryptocurrency.
toToken
The default cryptocurrency you would prefer the user to swap to. Users will still be able to select another cryptocurrency.
fromTokenAmount
The default amount filled in the fromToken
field.