etherscan-api icon indicating copy to clipboard operation
etherscan-api copied to clipboard

Incorrect balance returned

Open guyfi opened this issue 7 years ago • 2 comments

Thanks for building this API. I've used the API to retrieve my balance which has returned the incorrect value.

Array ( [status] => 1 [message] => OK [result] => 396448160000000000 )

Any help would be appreciated.

changing the function to transactionlist seems to work correctly.

PS: i wish that was my ETH balance.

guyfi avatar Feb 11 '18 09:02 guyfi

It's probably your account balance in wei, so it's like 0.396... ether

olgierds avatar Mar 06 '18 14:03 olgierds

@guyfi @olgierds Yes, this is balance in wei (1 eth = 10^18 wei)

dzarezenko avatar Mar 06 '18 14:03 dzarezenko