We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Closed by #17.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: