Mysten Labs SDKs

Slush Integration

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 dApp, shown to the user when connecting to the dApp.
function App({ children }) {
	return (
		<WalletProvider
			slushWallet={{
				name: 'Your dApp name',
			}}
		>
			{children}
		</WalletProvider>
	);
}

Note: In the connect modal, users with the Slush Wallet extension installed will only see the extension. If they don’t have it, the connection will default to the Slush web app.

On this page