# AbiEvent.format

Formats an [`AbiEvent.AbiEvent`](/api/AbiEvent/types#abievent) into a **Human Readable ABI Error**.

## Imports

:::code-group
```ts [Named]
import { AbiEvent } from 'ox'
```

```ts [Entrypoint]
import * as AbiEvent from 'ox/AbiEvent'
```
:::

## Examples

```ts twoslash
import { AbiEvent } from 'ox'

const formatted = AbiEvent.format({
  type: 'event',
  name: 'Transfer',
  inputs: [
    { name: 'from', type: 'address', indexed: true },
    { name: 'to', type: 'address', indexed: true },
    { name: 'value', type: 'uint256' }
  ]
})

formatted
//    ^?
```

## Definition

```ts
function format<abiEvent>(
  abiEvent: abiEvent | AbiEvent,
): format.ReturnType<abiEvent>
```

**Source:** [src/core/AbiEvent.ts](https://github.com/wevm/ox/blob/main/src/core/AbiEvent.ts#L1981)

## Parameters

### abiEvent

* **Type:** `abiEvent | AbiEvent`

The ABI Event to format.

## Return Type

The formatted ABI Event.

`format.ReturnType<abiEvent>`
