vuex-web3
v1.0.2
Published
<h1 align="center">Welcome to vuex-web3 👋</h1> <p> <img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" /> <a href="https://twitter.com/jcbombardelli"> <img alt="Twitter: jcbombardelli" src="https:
Downloads
2
Readme
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