dApp Kit (Legacy)
Slush Integration
Integrate Slush wallet with the legacy dApp Kit WalletProvider.
The dApp Kit provides out-of-the-box opt-in support for the Slush wallet.
Setup
To enable support for Slush wallets, pass the slushWallet object to the WalletProvider
component. This object has the following properties:
name: The name of your app, shown to the user when connecting to the app.
function App({ children }) {
return (
<WalletProvider
slushWallet={{
name: 'Your dApp name',
}}
>
{children}
</WalletProvider>
);
}In the connect modal, users with the Slush Wallet extension installed will only see the extension. If they do not have it, the connection defaults to the Slush web app.