update_wallet_balances#

API documentation for tradeexecutor.ethereum.wallet.update_wallet_balances Python function.

update_wallet_balances(web3, address, tokens, block_identifier=None)[source]#

Get raw balances of ERC-20 tokens.

Parameters:
  • web3 (Web3) –

  • address (HexAddress) –

  • tokens (List[HexAddress]) –

  • block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], ~eth_typing.evm.BlockNumber, ~eth_typing.evm.Hash32, ~eth_typing.encoding.HexStr, ~hexbytes.main.HexBytes, int]) –

Return type:

Dict[HexAddress, DecimalisedHolding]