Skip to content

Instantly share code, notes, and snippets.

@KardanovIR
Last active January 23, 2020 10:51
Show Gist options
  • Save KardanovIR/087ace5e473304b354dd14a7bba0fefc to your computer and use it in GitHub Desktop.
Save KardanovIR/087ace5e473304b354dd14a7bba0fefc to your computer and use it in GitHub Desktop.
WavesKeeper.auth({name: 'Waves Keeper', data: 'Waves Keeper', icon: 'https://docs.wavesplatform.com/_theme/brand-logo/waves-docs-logo.png'})
.then(function (res) {
// data in variable res is shown below
//{
// "data":"Waves Keeper",
// "prefix":"WavesWalletAuthentication",
// "host":"localhost",
// "name":"Waves Keeper",
// "icon":"https://docs.wavesplatform.com/_theme/brand-logo/waves-docs-logo.png",
// "timestamp":1543175910353,
// "address":"3PKqkMWvjjwjqbVSu8eL48dNfzWc3ifaaWi",
// "publicKey":"4WLcUznGiQXCoy2TnCohGKzDR8c14LFUGezvLNu7CVPA",
// "signature":"4s2nz8RxT29UwbJoNjPWxYwjsXYeoaMWK4dDM5eQN5gRmeZWGrN1HbpsirhTzWMJFAGtzzw4U78RNRKeEtwficwR"
//}
})
.catch(function(err){console.log(err)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment