Closed pedrobranco closed 7 years ago
When parsing a Bitcoin/Crypto response that has an value with more than 15 significant digits: example is 1222223333.00000001.
1222223333.00000001
The lib request with option
{ json:true }
used by bitcoin-core uses JSON.parse which loses precision returning the amount 1222223333.
bitcoin-core
JSON.parse
1222223333
Suggestion: use request with
{ json: false }
and parse the raw output with the lib json-bigint-string.
@ruimarinho @nunofgs @fixe
Closed by https://github.com/seegno/bitcoin-core/pull/17.
When parsing a Bitcoin/Crypto response that has an value with more than 15 significant digits: example is
1222223333.00000001
.The lib request with option
used by
bitcoin-core
usesJSON.parse
which loses precision returning the amount1222223333
.Suggestion: use request with
and parse the raw output with the lib json-bigint-string.
@ruimarinho @nunofgs @fixe