diff --git a/plugins/currency/ethereum/etherscan_balance_ b/plugins/currency/ethereum/etherscan_balance_ index b00eac76..53ecd34a 100755 --- a/plugins/currency/ethereum/etherscan_balance_ +++ b/plugins/currency/ethereum/etherscan_balance_ @@ -103,5 +103,13 @@ except: print("JSON result error!", file=sys.stderr) sys.exit(9) +""" +API result is in Wei. Convert Wei to Ether (ETH). +1 : Wei +10^12 : Szabo +10^15 : Finney +10^18 : Ether +233874700000000000000000 Wei = 233,874.7 Ether +""" eth = float(etherscan_balance['result']) / 1000000000000000000 print("{}.value {:.2f}".format(eth_address, eth));