Skip to main content

Topup your Wallet in PnP Web Modal SDK

For topping up the wallet of a user, you can use the initiateTopup() function. This method takes in the parameters of the selected payment provider and accordingly gives you the option to seemless add money to your user's wallet address directly.

note

This is a paid feature and the minimum pricing plan to use this SDK in a production environment is the Growth Plan. You can use this feature in the development environment for free.

initiateTopup()

Shows the TopUp modal to select local currency and amount to top up the wallet.

Example

import { WalletServicesPlugin } from "@web3auth/wallet-services-plugin";

const walletServicesPlugin = new WalletServicesPlugin();
web3auth.addPlugin(walletServicesPlugin); // Add the plugin to web3auth

await walletServicesPlugin.showCheckout(); // Opens the TopUp modal

Supported Cryptocurrency

Supported Cryptocurrency for each Payment Provider by Network

MOONPAY

NetworkSupported Cryptocurrency
mainnetAAVE, BAT, DAI, ETH, MKR, MATIC, USDT , USDC
maticETH: eth_polygon, MATIC: matic_polygon, USDC: usdc_polygon
bsc_mainnetBNB: bnb_bsc, BUSD: busd_bsc
avalanche_mainnetAVAX: avax_cchain

WYRE

NetworkSupported Cryptocurrency
mainnetAAVE, BAT, BUSD, DAI, ETH, MKR, UNI , USDC, USDT
maticUSDC: MUSDC
avalanche_mainnetAVAX

RAMPNETWORK

NetworkSupported Cryptocurrency
mainnetETH, DAI, USDC, USDT
maticMATIC_DAI, MATIC_MATIC , MATIC_USDC
avalanche_mainnetAVAX

XANPOOL

NetworkSupported Cryptocurrency
mainnetETH, USDT

MERCURYO

NetworkSupported Cryptocurrency
mainnetETH, BAT, USDT, DAI
bsc_mainnetBNB, BUSD, 1INCH

TRANSAK

NetworkSupported Cryptocurrency
mainnetAAVE, DAI, ETH, USDC, USDT , CHAIN
maticAAVE, DAI, MATIC, USDC, USDT , WETH, CHAIN
bsc_mainnetBNB, BUSD
avalanche_mainnetAVAX

BANXA

NetworkSupported Cryptocurrency
mainnetETH, USDT, BUSD, LINK, USDC, CHZ, BAT, MANA, AAVE, COMP, ENJ
maticMATIC