Blocto
About porttoBlog
  • 📣Introduction
  • Blocto Environment
  • Give Feedback
  • BLOCTO SDK
    • Overview
    • JavaScript SDK
      • Flow
        • Tutorial
        • Configure FCL
        • Authenticate / Unauthenticate
        • Send Transaction
        • Account Proof
        • Flow Networks
        • Verified Transaction
        • Migration Guide
  • Blocto App
    • Deep Linking
    • Token Listing
    • NFT Listing (on Flow)
  • Technical Documents
    • Key Management
  • BloctoSwap
    • Token Listing
  • Support
    • Contact Us
    • Web Wallet v1 Sunset Notice and Migration Guide
  • Community
    • Discord
    • Twitter
    • Facebook
Powered by GitBook
On this page
  • Changes
  • Upgrading Dependency
  • Upgrading the FCL Configuration
  • FCL Wallet Discovery

Was this helpful?

  1. BLOCTO SDK
  2. JavaScript SDK
  3. Flow

Migration Guide

Migrating Blocto wallet from v1 to v2

PreviousVerified TransactionNextDeep Linking

Last updated 27 days ago

Was this helpful?

This guide is primarily for early Flow developers adopting Blocto wallet who want to learn about our latest progress on Flow & Blocto. Read the following guide to enhance your experience with Blocto.

For why to use @blocto/fcl instead of @onflow/fcl, check out this for further information.

Changes

  • Latest version of @blocto/fcl@1.6.1 has been released

  • New version of the blocto wallet interface and endpoints

  • Update some deprecated methods or properties

Upgrading Dependency

Upgrade the @blocto/fcl in the package.json to ^1.6.1

yarn upgrade @blocto/fcl@^1.6.1
npm install @blocto/fcl@^1.6.1
npm install @blocto/fcl@^1.6.1

Upgrading the FCL Configuration

Replace the value of accessNode.api and configuration keys:

import * as fcl from "@blocto/fcl";

fcl
  .config({
    "accessNode.api": "https://rest-mainnet.onflow.org",
    "discovery.wallet": `https://wallet-v2.blocto.app/-/flow/authn`
  })
import * as fcl from "@blocto/fcl";

fcl
  .config({
    "accessNode.api": "https://rest-testnet.onflow.org",
    "discovery.wallet": `https://wallet-v2-dev.blocto.app/-/flow/authn`
  })

If you have been using the back channel to communicate with FCL, follow the guide below:

import * as fcl from "@blocto/fcl";

fcl
  .config({
    "accessNode.api": "https://rest-mainnet.onflow.org",
    "discovery.wallet": "https://wallet-v2.blocto.app/api/flow/authn",
    "discovery.wallet.method": "HTTP/POST"
  })
import * as fcl from "@blocto/fcl";

fcl
  .config({
    "accessNode.api": "https://rest-testnet.onflow.org",
    "discovery.wallet": "https://wallet-v2-dev.blocto.app/api/flow/authn",
    "discovery.wallet.method": "HTTP/POST"
  })

FCL Wallet Discovery

Good news for those who use to support multiple wallet on Flow, there is no action required from your side. You can keep the configuration as you did in FCL and Blocto wallet v2 will show up there automatically.

Github PR
wallet discovery