Connect to Blocto wallet
Make sure you initialize Blocto SDK first
Before you start to interact with Blocto wallet, you need to have wallet connected.
Once the wallet connection requested, it would
  • redirect to the Blocto wallet app if it is installed
  • open webview if the app is not installed
and ask user to connect the wallet.
1
BloctoSDK.solana.requestAccount(
2
context = context,
3
onSuccess = { address ->
4
// wallet connected
5
},
6
onError = { error ->
7
// handle error
8
}
9
)
Copied!
Copy link