Defines the callback for when a pairing is created
Defines a callback for when the wallet disconnects from the dApp
wcInstance.subscribeToEvents({
onDeleted: () => {
// here is where you describe a logout callback
logout()
}
})
Defines the callback for when the proposal is built so the dApp can show a QRCode to start the connection.
wcInstance.subscribeToEvents({
onProposal: (uri: string) => {
// show the QRCode, you can use @walletconnect/qrcode-modal to do so, but any QRCode presentation is fine
QRCodeModal.open(uri, () => {})
// alternatively you can show Neon Wallet's connection website, which is more welcoming
window.open(`https://neon.coz.io/connect?uri=${uri}`, '_blank').focus();
}
})
the code that will be delivered to the wallet to establish a connection
Generated using TypeDoc
A simple interface that defines the callbacks that can be implemented