> **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.

# AbiConstructor.format

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

Formats an [`AbiConstructor.AbiConstructor`](/docs/utilities/abiconstructor/types#abiconstructor) into a **Human Readable ABI Function**.

## Imports

```ts
import { AbiConstructor } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { AbiConstructor } from 'viem/utils'

const formatted = AbiConstructor.format({
  inputs: [{ name: 'owner', type: 'address' }],
  payable: false,
  stateMutability: 'nonpayable',
  type: 'constructor'
})

formatted
//    ^?
```

## Definition

```ts
function format(
  abiConstructor: AbiConstructor,
): string
```

## Parameters

### abiConstructor

* **Type:** `AbiConstructor`

The ABI Constructor to format.

## Return Type

The formatted ABI Constructor.

`string`
