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
dependencies {
implementation "com.portto.fcl:$fclVersion"
}
Initialization
Add FCL content provider to AndroidManifest.xml
.
<application>
<provider
android:authorities="com.portto.fcl.context"
android:name="com.portto.fcl.lifecycle.FCLContentProvider"
android:exported="false"/>
</application>
To initialize FCL, call Fcl.init()
.
Fcl.init(
env = Network.TESTNET,
appDetail = AppDetail("My first dApp"),
supportedWallets = walletProviderList
)
Wallet Provider
A wallet provider is the instance of a Flow wallet. The following is an example of adding Blocto
as a wallet provider.
val walletProviderList = listOf(Blocto.getInstance(YOUR_BLOCTO_APP_ID))
Fcl.init(
env = Network.TESTNET,
appDetail = AppDetail(),
supportedWallets = walletProviderList
)
Last updated
Was this helpful?