NearFi Wallet
  • Introduction
  • App
    • Manage Assets
    • Dapp Browser
    • Import Multiple Accounts
    • Access Key Management
    • Address Book
  • Developer Guide
    • Integrate NearFi Dapp browser into your app
      • Detecting NearFi wallet provider ready
      • Sign-in & sign-out with NearFi
      • Getting account information
      • Send transactions
      • Events
      • Wallet selector
  • Terms and Condition
  • Privacy
  • Support
Powered by GitBook
On this page
  1. Developer Guide
  2. Integrate NearFi Dapp browser into your app

Detecting NearFi wallet provider ready

NearFi Dapp browser injected a global object called nearFiWallet for applications to interact with the user wallet and the NEAR blockchain This code segment checks whether NearFi wallet available for use in the browser

if (typeof window.nearFiWallet !== 'undefined' && window.nearFiWallet.isNearFi) {
  console.log('NearFi is installed and ready for connection!');
}  
PreviousIntegrate NearFi Dapp browser into your appNextSign-in & sign-out with NearFi

Last updated 2 years ago