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.

BloctoSDK.solana.requestAccount(
    context = context,
    onSuccess = { address ->
        // wallet connected
    },
    onError = { error ->
        // handle error
    }
)

Last updated

Change request #370: docs: add web sdk v0.5.0 ERC-4337 docs