This guide is designed to help you quickly integrate a basic instance of Web3Auth Plug and Play (PnP) Modal in your React application with Mantle chain configuration. You can refer to the full documentation here: https://web3auth.io/docs/sdk/pnp/web/modal
Clone the PnP Modal React Quick Start Application for a quick setup:
npx degit Web3Auth/web3auth-pnp-examples/web-modal-sdk/quick-starts/react-modal-quick-start w3a-quick-start
cd w3a-quick-start
npm install
npm run start
npm install --save @web3auth/modal
You will need to get the clientID from Web3Auth dashboard here 👉 https://dashboard.web3auth.io
Once this is done, you set up a new project from the project dashboard and paste the client ID into the App.tsx
file as below :
const chainConfig = {
chainId: "0x1388",
rpcTarget: "https://rpc.mantle.xyz",
chainNamespace: CHAIN_NAMESPACES.EIP155,
displayName: "Mantle Mainnet",
blockExplorerUrl: "https://explorer.mantle.xyz/",
//we will add the etherscan link when implementation done
ticker: "MNT",
tickerName: "Mantle",
logo: "https://cryptologos.cc/logos/mantle-mnt-logo.svg?v=031",
}