verbs.abi.abi_from_str#

abi_from_str(name: str, json_str: str) type[source]#

Create an ABI type from a JSON string

Create a new ABI type from an ABI JSON string.

Parameters:
  • name (str) – Name to give the ABI type.

  • json_str (str) – ABI JSON string.

Returns:

type – Type representing the ABI with attributes for the functions and events.