I am trying to filter on a BigInt for an event (the number can fit in a uint256). I keep getting an error Error: invalid number value

This is what the code looks like..

{ filter: {fromID:BigInt(179562798303356696840717800282997654006487030352)}}

Why can I not pass in this number?

For the record it is also BigInt("0x1f73dfd58f00056a5380800e40b42861be8f9a50")

If I use BigNumber instead the error shows value="1.79562798303356696840717800282997654006487030352e+47", and apparently I can't filter this value either

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.