small fixes documentation

This commit is contained in:
mathi
2021-10-30 17:06:46 +02:00
parent cb98773d6a
commit 89e4ea1635
2 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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
View File
@@ -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)
* } * }
*})() *})()
* *