Integrate with MSafe (DAPP)
MSafe Wallet
Installation
npm install @msafe/aptos-aip62-walletMake some change to your code
<AptosWalletAdapterProvider plugins={[new MSafeWallet({
network: Network.TESTNET,
appId: "", // If you have already integrate with MSafe (list in MSafe App Store), you can ask MSafe team to provide the AppId
appUrl: "" // If you are not integrate with MSafe, you can provide your app url here
})]}>
{appContent}
</AptosWalletAdapterProvider>import { useWallet } from '@aptos-labs/wallet-adapter-react'
import { inMSafeWallet, MSafeWalletName } from '@msafe/aptos-wallet'
const wallet = useWallet()
useEffect(() => {
if (!wallet.connected && inMSafeWallet()) {
wallet.connect(MSafeWalletName)
}
}, [wallet.isLoading])Request MSafe team to add your dApp to app store
Last updated