Home

Awesome

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)
            })
  }
}