@0xsequence/kit-wallet
v4.4.3
Published
Wallet UI for Sequence Kit
Downloads
1,989
Keywords
Readme
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
# or
pnpm install @0xsequence/kit-wallet
# or
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>
}