> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# AbiItem Types

:::info
`AbiItem` is a re-export of ox's [`AbiItem`](https://oxlib.sh/api/AbiItem/types). Refer to the ox documentation for the full reference.
:::

## `AbiItem.AbiItem`

Root type for an item on an [`Abi.Abi`](/docs/utilities/abi/types#abi).

## `AbiItem.ExtractNames`

## `AbiItem.FromAbi`

Extracts an [`AbiItem.AbiItem`](/docs/utilities/abiitem/types#abiitem) item from an [`Abi.Abi`](/docs/utilities/abi/types#abi), given a name.

### Examples

```ts twoslash
// @noErrors
import { Abi, AbiItem } from 'viem/utils'

const abi = Abi.from([
  'error Foo(string)',
  'function foo(string)',
  'event Bar(uint256)'
])

type Foo = AbiItem.FromAbi<typeof abi, 'Foo'>
//   ^?
```

## `AbiItem.Name`

Extracts the names of all [`AbiItem.AbiItem`](/docs/utilities/abiitem/types#abiitem) items in an [`Abi.Abi`](/docs/utilities/abi/types#abi).

### Examples

```ts twoslash
// @noErrors
import { Abi, AbiItem } from 'viem/utils'

const abi = Abi.from([
  'error Foo(string)',
  'function foo(string)',
  'event Bar(uint256)'
])

type names = AbiItem.Name<typeof abi>
//   ^?
```
