Utils

The utils module houses public utility and helper functions.

ABI

Utils.get_abi_input_names(abi)

Return the input names for an ABI function or event.

Utils.get_abi_output_names(abi)

Return the output names an ABI function or event.

Exception Handling

Utils.handle_offchain_lookup(offchain_lookup_payload, transaction)

Handle OffchainLookup reverts on contract function calls manually. For an example, see CCIP Read support for offchain lookup within the examples section.

Utils.async_handle_offchain_lookup(offchain_lookup_payload, transaction)

The async version of the handle_offchain_lookup() utility method described above.