Try it Live
Run ABI examples in the interactive playground
Overview
ABI items represent contract interface elements. Four primary types:- Function - Contract methods (read/write)
- Event - Log events emitted by contracts
- Error - Custom error definitions (EIP-3668)
- Constructor - Contract deployment parameters
Function Type
Functions define callable methods with inputs/outputs.keccak256(signature)
Event Type
Events define log structures for contract notifications.keccak256(signature) (topic0)
Error Type
Errors define revert reasons with typed parameters.keccak256(signature)
Constructor Type
Constructor defines deployment parameters.Parameter Types
All types useAbiParameter for inputs/outputs:
Type Guards
UseAbi.Item.* methods to check types:
See Also
- Item type guards - Check ABI item types
- Selectors - Selector generation
- Encoding - Encoding mechanics

