solana-modal
v0.0.71
Published
A modal connection tool based on the official Solana package, simple and easy to use.
Downloads
241
Maintainers
Readme
solana modal
A modal connection tool based on the official Solana package, simple and easy to use.
🫠😬Sorry, v0.0.5 is incorrect and cannot be used. It was a mistake I uploaded.
Please use version v0.0.6 or higher!
preview
dark
light
Usage
$ npm install solana-modal
import { SolanaModal } from 'solana-modal'
const modal = SolanaModal.init({
rpc: 'https://api.devtnet.solana.com',
autoConnect: true,
})
// connect
const address = await modal.openModal()
// event
modal.on('DISCONNECT', () => {
console.log('disconnect')
})
Very simple, And the theme automatically follows the system.