vue-web3-check

1.5.1 • Public • Published

Quick Start

Install

yarn add vue-web3-check
or
npm install vue-web3-check --save

Use the library

// main.js
import Vue from 'vue';
import * as Web3Check from 'vue-web3-check';

Vue.use(Web3Check, {
  Web3: typeof Web3 !== 'undefined' ? Web3 : null,
  networks: [1],
  requireAccount: true
});
// App.vue
<template>
  <web3Check>
    <template slot="load">
      <div>loader</div>
    </template>
    <template v-slot:error="props">
      <div>
        <p>{{props.error.type}}</p>
        <p>{{props.message}}</p>
      </div>
    </template>
    <div>web3 work</div>
  </web3Check>
</template>

/vue-web3-check/

    Package Sidebar

    Install

    npm i vue-web3-check

    Weekly Downloads

    6

    Version

    1.5.1

    License

    none

    Unpacked Size

    1.12 MB

    Total Files

    9

    Last publish

    Collaborators

    • vol4