Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 477 Bytes

faq.md

File metadata and controls

18 lines (13 loc) · 477 Bytes

FAQ

We have collected some good first questions here

How To Determine if the Wallet Is Connected Successfully in the DApp?

You can call wallet_enable method and check if it is rejected or not.

try {
  await ckb.request({ method: 'wallet_enable' });
} catch {
  // wallet not connected, maybe user rejected the request
  console.log('wallet not connected');
}