Connect
Last updated
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 get all methods of Wallet, learn more at Wallet methods
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();and check current status of connect withisConnected
Last updated