# Secp256k1.recoverAddress

Recovers the signing address from the signed payload and signature.

## Imports

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

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

## Examples

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

const signature = Secp256k1.sign({
  payload: '0xdeadbeef',
  privateKey: '0x...'
})

const address = Secp256k1.recoverAddress({
  // [!code focus]
  payload: '0xdeadbeef', // [!code focus]
  signature // [!code focus]
}) // [!code focus]
```

## Definition

```ts
function recoverAddress(
  options: recoverAddress.Options,
): recoverAddress.ReturnType
```

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

## Parameters

### options

* **Type:** `recoverAddress.Options`

The recovery options.

#### options.payload

* **Type:** `0x${string} | Uint8Array`

Payload that was signed.

#### options.signature

* **Type:** `0x${string} | Uint8Array | { r: 0x${string}; s: 0x${string}; yParity: number; }`

Signature of the payload.

Accepts a structured [`Signature.Signature`](/api/Signature/types#signature), a serialized hex
string, or a `Uint8Array` (65-byte recovered).

## Return Type

The recovered address.

`recoverAddress.ReturnType`
