Connect
To connect to Fewcha Wallet, you simply call this method
window.fewcha.connect()
await window.fewcha.connect();
connect()
: the method will return a Promise that resolves when the user accepts the connection request to the DApp website. The response will look like{
"method": "connect",
"status": 200,
"data": {
"address": "0x...",
"publicKey": "0x..."
}
}
To use with TypeScript support, please learn more at TypeScript Wrapper, and use with React Select Wallet Popup, learn more at React Connect Button
await window.fewcha.disconnect();
Last modified 10mo ago