=====================
A wallet-lib plugin for DashPay DPA features
Relies on :
Under active development.
Dash is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Dash network allows for highly resilient Dash infrastructure, and the developer community needs reliable, open-source tools to implement Dash apps and services.
npm install @dashevo/dashpay-dpa --save-exactUsage the save-exact flag is encouraged as well as a manual verification of the modifications before bumping to a newer version.
In your initialization of your wallet object, add DashPayDPA in the plugins array parameter.
const { Wallet } = require('@dashevo/wallet-lib');
const DashPayDPA = require('@dashevo/dashpay-dpa');
const wallet = new Wallet({
plugins: [DashPayDPA],
allowSensitiveOperations: true
});
The allowSensitiveOperations has to be set at true. As we require an access to
the keychain in order to sign a RegTx.
Any plugin requiring this boolean to be true, should have extra look and be installed and fixed to a specific version using the --save-exact npm flag.
Futures updates should then be manual and go through a whole check again.
In order to be able to access to method of DashPay DPA. You first need to get the instance from wallet-lib :
const dpd = account.getDPA('dashpaydpa');
- Register DashPayDPA Schema
- Register a blockchain username
- Broadcast transition
- Search/Get BU.
- Top Up account
- Pay To Username
- Contact logic
You can see here, some Examples.
Wallet-Lib is maintained by the Dash Core Developers. We want to thanks all member of the community that have submited suggestions, issues and pull requests.
MIT © Dash Core Group, Inc.