# Address.from

Converts a stringified address to a typed (optionally checksummed) [`Address.Address`](/api/Address/types#address).

## Imports

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

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

## Examples

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

Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e')
// @log: '0xa0cf798816d4b9b9866b5330eea46a18382f251e'
```

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

Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e', {
  checksum: true
})
// @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
```

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

Address.from('hello')
// @error: InvalidAddressError: Address "0xa" is invalid.
```

## Definition

```ts
function from(
  address: string,
  options?: from.Options,
): Address
```

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

## Parameters

### address

* **Type:** `string`

An address string to convert to a typed Address.

### options

* **Type:** `from.Options`
* **Optional**

Conversion options.

#### options.checksum

* **Type:** `boolean`
* **Optional**

Whether to checksum the address.

## Return Type

The typed Address.

`Address`
