Wallets Parameter
There are currently two available parameters for customize the wallet behavior.
Option | Type | Description |
---|---|---|
wallets | string | String of wallet addresses that can be supplied to the widget |
networkWallets | string | String of wallet addresses that can be supplied to the widget |
isAddressEditable | boolean | Parameter to prevent the end-user from editing the wallet address. |
The wallets
parameter accepts a string of wallet addresses that can be supplied to the widget.
The format for a single wallet address is colon-separated by the Onramper Token ID and the wallet address.
BTC:3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5
You can supply multiple wallet addresses by combining the above patterns and supplying it as a comma-separated string.
wallets=BTC:3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5,ETH:0xb794f5ea0ba39494ce839613fffba74279579268
Your URL should look something like this and should also include a production API Key:
https://buy.onramper.com/?wallets=BTC:3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5,ETH:0xb794f5ea0ba39494ce839613fffba74279579268
You can also supply multiple wallet addresses to be utilized for all tokens supported by a single chain by using the networkWallets
parameter.
The wallet address can be prefixed by any supported Onramper Network ID.
https://buy.onramper.com/?networkWallets=ETHEREUM:0xb794f5ea0ba39494ce839613fffba74279579268
You can use these URLs as a redirect or insert it into an iframe / webview