mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
small fixes documentation
This commit is contained in:
+2
-2
@@ -142,7 +142,7 @@ class ElectrumX {
|
|||||||
* (async () => {
|
* (async () => {
|
||||||
* try {
|
* try {
|
||||||
* let balance = await bchjs.Electrumx.balance('bitcoincash:qrdka2205f4hyukutc2g0s6lykperc8nsu5u2ddpqf');
|
* let balance = await bchjs.Electrumx.balance('bitcoincash:qrdka2205f4hyukutc2g0s6lykperc8nsu5u2ddpqf');
|
||||||
* console.log(utxo);
|
* console.log(balance);
|
||||||
* } catch(error) {
|
* } catch(error) {
|
||||||
* console.error(error)
|
* console.error(error)
|
||||||
* }
|
* }
|
||||||
@@ -159,7 +159,7 @@ class ElectrumX {
|
|||||||
* (async () => {
|
* (async () => {
|
||||||
* try {
|
* try {
|
||||||
* let balance = await bchjs.Electrumx.balance(['bitcoincash:qrdka2205f4hyukutc2g0s6lykperc8nsu5u2ddpqf', 'bitcoincash:qpdh9s677ya8tnx7zdhfrn8qfyvy22wj4qa7nwqa5v']);
|
* let balance = await bchjs.Electrumx.balance(['bitcoincash:qrdka2205f4hyukutc2g0s6lykperc8nsu5u2ddpqf', 'bitcoincash:qpdh9s677ya8tnx7zdhfrn8qfyvy22wj4qa7nwqa5v']);
|
||||||
* console.log(utxo);
|
* console.log(balance);
|
||||||
* } catch(error) {
|
* } catch(error) {
|
||||||
* console.error(error)
|
* console.error(error)
|
||||||
* }
|
* }
|
||||||
|
|||||||
+7
-7
@@ -58,7 +58,7 @@ class Price {
|
|||||||
* let current = await bchjs.Price.getUsd();
|
* let current = await bchjs.Price.getUsd();
|
||||||
* console.log(current);
|
* console.log(current);
|
||||||
* } catch(err) {
|
* } catch(err) {
|
||||||
* console.err(err)
|
* console.error(err)
|
||||||
* }
|
* }
|
||||||
*})()
|
*})()
|
||||||
*
|
*
|
||||||
@@ -94,7 +94,7 @@ class Price {
|
|||||||
* let current = await bchjs.Price.rates();
|
* let current = await bchjs.Price.rates();
|
||||||
* console.log(current);
|
* console.log(current);
|
||||||
* } catch(err) {
|
* } catch(err) {
|
||||||
* console.err(err)
|
* console.error(err)
|
||||||
* }
|
* }
|
||||||
*})()
|
*})()
|
||||||
*
|
*
|
||||||
@@ -137,7 +137,7 @@ class Price {
|
|||||||
* let current = await bchjs.Price.getBchaUsd();
|
* let current = await bchjs.Price.getBchaUsd();
|
||||||
* console.log(current);
|
* console.log(current);
|
||||||
* } catch(err) {
|
* } catch(err) {
|
||||||
* console.err(err)
|
* console.error(err)
|
||||||
* }
|
* }
|
||||||
*})()
|
*})()
|
||||||
*
|
*
|
||||||
@@ -161,7 +161,7 @@ class Price {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @api price.getXecUsd() getXecUsd()
|
* @api price.getXecUsd() getXecUsd()
|
||||||
* @apiName Price getXecUsd()
|
* @apiName Price getXecUsd()
|
||||||
* @apiGroup Price
|
* @apiGroup Price
|
||||||
@@ -175,13 +175,13 @@ class Price {
|
|||||||
* let current = await bchjs.Price.getXecUsd();
|
* let current = await bchjs.Price.getXecUsd();
|
||||||
* console.log(current);
|
* console.log(current);
|
||||||
* } catch(err) {
|
* } catch(err) {
|
||||||
* console.err(err)
|
* console.error(err)
|
||||||
* }
|
* }
|
||||||
*})()
|
*})()
|
||||||
*
|
*
|
||||||
* // 0.00021234
|
* // 0.00021234
|
||||||
*/
|
*/
|
||||||
async getXecUsd () {
|
async getXecUsd () {
|
||||||
try {
|
try {
|
||||||
const response = await this.axios.get(
|
const response = await this.axios.get(
|
||||||
`${this.restURL}price/bchausd`,
|
`${this.restURL}price/bchausd`,
|
||||||
@@ -210,7 +210,7 @@ class Price {
|
|||||||
* let current = await bchjs.Price.getBchUsd();
|
* let current = await bchjs.Price.getBchUsd();
|
||||||
* console.log(current);
|
* console.log(current);
|
||||||
* } catch(err) {
|
* } catch(err) {
|
||||||
* console.err(err)
|
* console.error(err)
|
||||||
* }
|
* }
|
||||||
*})()
|
*})()
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user