Skip to content

balance result different from ethscan #26

@allanwakes

Description

@allanwakes

Really appreciate this tool, helped me a lot!

I run tokenbalance in docker.
I found that the erc20 balance result for the same wallet against the same contract is different from the result on ethscan (when decimal is large? result is the same when decimal is 6).
for example:
curl http://localhost:8080/token/0x514910771af9ca656af840dff83e8264ecf986ca/0xdc4252e99397371ada045040a28c05025bae7101

result:
{"token":"0x514910771AF9Ca656af840dff83E8264EcF986CA","wallet":"0xDc4252E99397371aDa045040A28C05025bAE7101","name":"ChainLink Token","symbol":"LINK","balance":"3997863.6130105284973979","eth_balance":"0.0","decimals":18,"block":8711386}

while the balance on ethscan is:
3997863.613010528440330967

Is there any problem when transforming balance, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions