EncodedCallResult

Documentation for eth_defi.event_reader.multicall_batcher.EncodedCallResult Python class.

class EncodedCallResult[source]

Result of an one multicall.

Example:

# File 21 of 47 : PlasmaVaultStorageLib.sol
#     /// @custom:storage-location erc7201:io.ipor.PlasmaVaultPerformanceFeeData
#     struct PerformanceFeeData {
#         address feeManager;
#         uint16 feeInPercentage;
#     }
data = call_by_name["getPerformanceFeeData"].result
performance_fee = int.from_bytes(data[32:64], byteorder="big") / 10_000

Attributes summary

call

success

result

block_identifier

Methods summary

__init__(call, success, result, block_identifier)

__init__(call, success, result, block_identifier)
Parameters
Return type

None