Sequence Kit Wallet
Embedded wallet allowing to display and send collectibles and coins.
Installing the module
First install the package:
npm install @0xsequence/kit-wallet
pnpm install @0xsequence/kit-wallet
yarn add @0xsequence/kit-wallet
Then the wallet provider module must placed below the Sequence Kit Core provider.
import { KitWalletProvider } from '@0xsequence/kit-wallet'
const App = () => {
return (
<SequenceKit config={config}>
<KitWalletProvider>
<Page />
</KitWalletProvider>
</WagmiProvider>
)
}
Opening the embedded wallet
The embedded wallet modal can be summoded with the useOpenWalletModal
hook.
import { useOpenWalletModal } from '@0xsequence/kit-wallet'
const MyComponent = () => {
const { setOpenWalletModal } = useOpenWalletModal()
const onClick = () => {
setOpenWalletModal(true)
}
return <button onClick={onClick}>open wallet</button>
}