A
A
Alexander Ivanov2022-02-11 20:25:00
Cryptocurrency
Alexander Ivanov, 2022-02-11 20:25:00

In what system of calculation does Etherium show the balance?

When working through geth, requesting the balance of a certain wallet, a response like this is returned to the console:

{"jsonrpc":"2.0","id":67,"result":"0xdab5a87251800"}

in what system of calculation is the result parameter displayed? And how, for example, in php to translate this value into a decimal system?

ps: in decimal this number looks like this: 0.00384758. I looked at etherscan

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2022-02-11
@dimonchik2013

hexadecimal - obviously, abcdef contains numbers
https://www.google.com/search?q=0xdab5a87251800+co...

S
Sergey, 2022-02-11
@KingstonKMS

Read about BigNumber and rules for formatting numbers on the air.
https://docs.ethers.io/v5/api/utils/display-logic/... .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question