You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm install fireflywallet-api --save
or
yarn add fireflywallet-api
ready
importFireFlyWalletfrom'fireflywallet-api';constFFWProxy=newFireFlyWallet();FFWProxy.ready().then(FFW=>{console.log('firefly wallet api is ready')}).catch(err=>{console.error(err)})
FFWProxy.networkorFFWProxy.getNetwork().then(network=>{console.log(network)//output: "Public Global Stellar Network ; September 2015" or "Test SDF Network ; September 2015"}).catch(err=>{console.error(err)})
<scriptsrc="path\to\dist\fireflywallet.min.js"></script><script>varFFWProxy=newFireFlyWallet();FFWProxy.ready().then(function(FFW){console.log('firefly wallet is ready!')}).catch(function(err){console.error(err);})</script>