Skip to content

opensolutionsweb3/vue-waves-signer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waves Signer implementation for Vue.js

Helpfull links

How to install

$ npm i @opensolutions/vue-waves-signer --save

How to setup

// add to main.js
import VueSigner from '@opensolutions/vue-waves-signer'

// production version
Vue.use(VueSigner)

// debug version
Vue.use(VueSigner, {
  debug: true
})

If you need custom node url or provider

Vue.use(VueSigner, {
  node: '<custom node>',
  provider: '<custom provider>'
})

How to use

// simple login function

methods: {
  async login() {
    await this.signer
            .login()
            .then((response) => {
              console.log(response)
            },
            (error) => {
              console.log(error)
            })
  }
}

About

Waves Signer implementation for Vue.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published