Getting Started
Initialize FCL and add Blocto as a wallet provider
In this guide we will show you prerequisite for Blocto Flow SDK.
A sample app is available at: https://github.com/blocto/fcl-android/tree/main/fcl-sample
Installation
Add the dependency below to your module's build.gradle
file
Initialization
Add FCL content provider to AndroidManifest.xml
.
To initialize FCL, call Fcl.init()
.
FCL requires some essential information for initialization:
env: The network on which the app was built. i.e.
Network.TESTNET
orNetwork.MAINNET
appDetail (optional): The information of the app.
supportedWallets: A list of wallet providers supported by the app.
Wallet Provider
A wallet provider is the instance of a Flow wallet. The following is an example of adding Blocto
as a wallet provider.
To obtain a Blocto App ID, please refer to the instructions.
If you initialize FCL with Network.TESTNET
, FCL utilizes Blocto testing App ID; Likewise, if you initialize FCL with Network.MAINNET
, FCL utilizes Blocto production App ID.
Last updated