Stashed Integration
dApp Kit provides out-of-the-box opt-in support for the Stashed wallet.
Setup
To enable support for Stashed wallets, pass the stashedWallet
object to the WalletProvider
component. This object has the following properties:
name
- The name of your dApp, shown to the user when connecting to the dApp.network
(optional) - The network that you would like the Stashed wallet to use. Defaults tomainnet
, supportsmainnet
andtestnet
.
function App({ children }) {
return (
<WalletProvider
stashedWallet={{
name: 'Your dApp name',
}}
>
{children}
</WalletProvider>
);
}