1.0.2 ā¢ Published 5 years ago
vuex-web3 v1.0.2
This web3 to a vuex state
š Homepage
Install
npm install vuex-web3 --save
Usage
import store from './vuex/store'
import registerWeb3 from 'vuex-web3'
registerWeb3(store, 'w3')
// second parameter is module name is optional
Exposed Getters:
address - need description
coinbase - String ETH Address Hex
instance - Function<Web3> Function that returns web3 instance
isInjected - Boolean True if web3 is injected
networkId - String Network ID
isLocal - Boolean True if web3 instance is connected to local node
balance - String Wallet balance
isApprovedNetwork - Boolean True if network is approved
networkName - String Network Name
filter - same as web3.eth.filter
reset - same as web3.reset
sha3 - same as web3.sha3
contract - same as web3.eth.contract
isConnected - same as web3.isConnected
Run tests
npm run test
Author
š¤ JC Bombardelli
- Twitter: @jcbombardelli
- Github: @jcbombardelli
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a āļø if this project helped you!
This Project was created with ā¤ļø by JC Bombardelli and powered by readme-md-generator