-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: amount -> satoshis, duffs -> sats
- Loading branch information
AJ ONeal
committed
Jan 25, 2023
1 parent
273e79a
commit 0adcf1a
Showing
6 changed files
with
105 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,11 +36,10 @@ npm install --save crowdnode@v1 | |
## CrowdNode Browser SDK | ||
|
||
```html | ||
<script src="https://unpkg.com/@root/[email protected]/urequest.js"></script> | ||
<script src="https://unpkg.com/dashsight@1.x/dashrequest.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dashtx.js"></script> | ||
<script src="https://unpkg.com/dashkeys@1.x/dashkeys.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dashsight.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dashsocket.js"></script> | ||
<script src="https://unpkg.com/@dashevo/[email protected]"></script> | ||
<script src="https://unpkg.com/[email protected]/dashapi.js"></script> | ||
<script src="https://unpkg.com/[email protected]/crowdnode.js"></script> | ||
``` | ||
|
@@ -124,7 +123,7 @@ APIs, but which you could learn from in [crowdnode-cli](/bin/crowdnode.js). | |
|
||
```js | ||
CrowdNode.offset = 20000; | ||
CrowdNode.duffs = 100000000; | ||
CrowdNode.satoshis = 100000000; | ||
CrowdNode.depositMinimum = 100000; | ||
|
||
CrowdNode.requests = { | ||
|
@@ -188,8 +187,8 @@ await CrowdNode.accept(wif, hotwallet); | |
* } | ||
*/ | ||
|
||
// amount given in DUFFs | ||
await CrowdNode.deposit(wif, hotwallet, (amount = 0)); | ||
// satoshis (a.k.a. duffs) is the base unit of DASH | ||
await CrowdNode.deposit(wif, hotwallet, (satoshis = 0)); | ||
/** @type SocketPayment | ||
* { | ||
* "address": "Xj00000000000000000000000000000000", | ||
|
@@ -282,7 +281,7 @@ await CrowdNode.http.VotingOpen(pub); | |
| Term | Description | | ||
| ------------- | ------------------------------------------------------------- | | ||
| addr | your Dash address (Base58Check-encoded Pay-to-PubKey Address) | | ||
| amount | the integer value of "Duffs" (Đ/100000000) | | ||
| satoshis | the base unit of DASH (a.k.a. "Duffs") Đ/100000000 | | ||
| permil | 1/1000, 1‰, or 0.1% - between 1 and 1000 (0.1% to 100.0%) | | ||
| ./privkey.wif | the file path to your staking key in WIF (Base58Check) format | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.