Tokens in Cardano could be minted with amounts as large as $2^{63} - 1$ (maximum of what signed 64 bit can support) which is larger than what could be safely represented for in JS. Standard JSON parser for JS would not be making use of bigint, consequently, this PR makes use of amounts-as-strings header attribute when making request to get amounts as strings instead, to cast later as bigint.
Tokens in Cardano could be minted with amounts as large as $2^{63} - 1$ (maximum of what signed 64 bit can support) which is larger than what could be safely represented for in JS. Standard JSON parser for JS would not be making use of
bigint
, consequently, this PR makes use ofamounts-as-strings
header attribute when making request to get amounts asstring
s instead, to cast later asbigint
.Closes #235.