Overview
Item.getItem is the Item namespace version of Abi.getItem. It searches an ABI array by name and optional type.
Quick Start
See Also
- Abi.getItem - Top-level helper
- Function.getSignature - Build canonical signatures
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Find an ABI item by name and type (Item namespace)
Item.getItem is the Item namespace version of Abi.getItem. It searches an ABI array by name and optional type.
import { Abi } from '@tevm/voltaire/Abi';
const abi = [
{
type: 'function',
name: 'transfer',
inputs: [
{ type: 'address', name: 'to' },
{ type: 'uint256', name: 'amount' }
],
outputs: [{ type: 'bool' }]
}
] as const;
const transfer = Abi.Item.getItem(abi, 'transfer', 'function');
Was this page helpful?
