@DaveTheCoder said:
@Schleckenmiester said:
Yes. The API call is the balance of an address, the API returns the whole amount in hex. Here's the documentation for it with another long sample hex number.
That page calls that value an address, and it's used in an HTTP request. I don't see why you can't keep it as a string.
So, I need the game and the user to know their balance in a number format. People don't operate in hex, so if they see their balance is "0xdeadbeef" they're not gonna know how much they have.
I've been thinking about it, and it appears Godot can interact with JS. I'm planning this to be a browser game too. So, I can just offload the hex numbers into the JS, then I've tested it already and JS doesn't seem to have a limit. After it's converted I can get a shortened integer from the JS side of things.