from web3 import Web3


with open('address.txt', 'r') as file:
    addresses = [line.strip() for line in file]

web3 = Web3(Web3.HTTPProvider("https://rpc.zkfair.io"))
total = 0
for address in addresses:
    total+=web3.eth.get_balance(address)/10**18
    print(f'{address} : {web3.eth.get_balance(address)/10**18}')
print(f'total {total}')
