1.0.1 • Published 2 years ago
metamask-wallet v1.0.1
Introduction
Dklp Wallet is a blockchain bridge help you to power your Dapp
How to use?
Install
npm install --save dklp-wallet
Configuration
import Wallet from 'dklp-wallet';
// ... Something React here
render() {
<Wallet visible={visible} options={options} done={callback} />
}
Returned provider will be assigned in window.capsuleWallet.provider
as a global variable for your Dapp can access it anywhere.
How to test?
Unit test
Not yet
Tool test
npm start
The app will be run on port 3000
with https
and support hot-loading. (If the browser asks something, please trust it and process straight forward)
Appendix
Version of important dependencies
"web3": "^0.20.7"
Cheatsheet
# | Commands | Descriptions |
---|---|---|
1 | npm install | Install module packages |
2 | npm run build | Build libraries in production |
3 | npm start | Run tool test |
1.0.1
2 years ago