Configure FCL
Configure Blocto wallet to your Flow dApp
Installation
npm install @blocto/fcl@^1.4.0yarn add @blocto/fcl@^1.4.0pnpm install @blocto/fcl@^1.4.0Configure Flow Networks & Blocto wallet URL
Using front channel
import * as fcl from "@blocto/fcl";
fcl
.config()
// connect to Flow mainnet
.put("accessNode.api", "https://rest-mainnet.onflow.org")
// use Blocto wallet
.put(
"discovery.wallet",
`https://wallet-v2.blocto.app/${YOUR_DAPP_ID}/flow/authn`
)import * as fcl from "@blocto/fcl";
fcl
.config()
// connect to Flow testnet
.put("accessNode.api", "https://rest-testnet.onflow.org")
// use Blocto testnet wallet
.put(
"discovery.wallet",
`https://wallet-v2-dev.blocto.app/${YOUR_DAPP_ID}/flow/authn`
)Using back channel
Last updated
Was this helpful?