ERC20BalanceCall
Documentation for eth_defi.balances.ERC20BalanceCall Python class.
- class ERC20BalanceCall
Bases:
eth_defi.event_reader.multicall_batcher.MulticallWrapperMulticall wrapper for ERC-20 balanceOf calls.
Attributes summary
token_addressholder_addresscallBound web3.py function with args in the place
contract_addressdebugSet for extensive info logging
Methods summary
__init__(call[, debug, token_address, ...])get_address_and_data()Get Solidity args as human readable string for debugging.
get_human_id()get_key()Get key that will identify this call in the result dictionary
handle(succeed, raw_return_value)Parse the call result.
multicall_callback(succeed, raw_return_value)Convert the raw Solidity function call result to a denominated token amount.
- get_key()
Get key that will identify this call in the result dictionary
- Return type
- handle(succeed, raw_return_value)
Parse the call result.
- __init__(call, debug=False, token_address=None, holder_address=None)
- Parameters
call (object) –
debug (bool) –
token_address (eth_typing.evm.HexAddress) –
holder_address (eth_typing.evm.HexAddress) –
- Return type
None
- get_human_args()
Get Solidity args as human readable string for debugging.
- Return type
- multicall_callback(succeed, raw_return_value)
Convert the raw Solidity function call result to a denominated token amount.
Multicall library callback