Connect to Blocto wallet
Before you started to interact with blocto wallet, you need to fire a connect request.
Once the connection request is fired, there would be a prompt modal to guide user to register/login to Blocto wallet.
connect()
request()
1
// Alternative: EIP-1102 way
2
// CAVEATS! it's deprecated and may be removed from future version
3
const accounts = await bloctoSDK.solana.connect();
Copied!
1
2
// EIP-1193 way (recommended)
3
const accounts = bloctoSDK.solana.request({ method: 'connect' });
Copied!
Last modified 5mo ago
Copy link