1

When I wanted show my eth balance in my web site it gives me this "0x103cf17cc1518eb4" how can i turn into string?

3
  • You can use parseInt("0x103cf17cc1518eb4") , also try BigInt("0x103cf17cc1518eb4") Nov 12, 2023 at 13:36
  • BigInt worked thx the other one showed 1.9 ..... something which I have 1.1 ...... something like that thanks anyway Nov 13, 2023 at 11:11
  • yeah, parseInt works for smaller numbers, but balances usually are BigNumbers, that's why BigInt worked :) Nov 13, 2023 at 12:12

1 Answer 1

1

BigInt worked. Thanks to Zartaj Afser.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.