Merge pull request #186 from mr-zwets/documentation-fix

small fixes documentation
This commit is contained in:
Chris Troutner
2021-11-13 06:43:55 -08:00
committed by GitHub
2 changed files with 7 additions and 7 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)
* } * }
+5 -5
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)
* } * }
*})() *})()
* *
@@ -175,7 +175,7 @@ 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)
* } * }
*})() *})()
* *
@@ -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)
* } * }
*})() *})()
* *