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!');
}  

Last updated