import { fromWei } from 'web3x/utils' ; import { Eth } from 'web3x/eth' ; import { Address } from 'web3x/address' ; export async function getBalance ( eth , address ) { const balance = await eth . getBalance ( address ) ; return fromWei ( balance , 'ether' ) ; }