@haloplatform/vuex-web3-sync
v1.4.7
Published
Web3 Vuex synchronization module
Downloads
44
Readme
vuex-web3-sync
Vuex module to sync with web3
install:
npm i @haloplatform/vuex-web3-sync --save
Usage:
requires Babel-Polyfill if you don't have it install it via: https://babeljs.io/docs/usage/polyfill
import store from './vuex/store'
import web3Sync from '@haloplatform/vuex-web3-sync'
web3Sync(store, 'webThree')
// second parameter is module name, optional
Exposed Getters:
address
- need descriptioncoinbase
-String
ETH Address Hexinstance
-Function<Web3>
Function that returns web3 instanceisInjected
-Boolean
True if web3 is injectednetworkId
-String
Network IDisLocal
-Boolean
True if web3 instance is connected to local nodebalance
-String
Wallet balanceisApprovedNetwork
-Boolean
True if network is approvednetworkName
-String
Network Namefilter
- same asweb3.eth.filter
reset
- same asweb3.reset
sha3
- same asweb3.sha3
contract
- same asweb3.eth.contract
isConnected
- same asweb3.isConnected