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 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 at 11:11
  • yeah, parseInt works for smaller numbers, but balances usually are BigNumbers, that's why BigInt worked :) Nov 13 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 that you have read and understand our privacy policy and code of conduct.

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