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

# Authorization.fromRpc

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

Converts an [`Authorization.Rpc`](/docs/utilities/authorization/types#rpc) to an [`Authorization.Authorization`](/docs/utilities/authorization/types#authorization).

## Imports

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

## Examples

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

const authorization = Authorization.fromRpc({
  address: '0x0000000000000000000000000000000000000000',
  chainId: '0x1',
  nonce: '0x1',
  r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',
  s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',
  yParity: '0x0'
})
```

## Definition

```ts
function fromRpc(
  authorization: Rpc,
): Signed
```

## Parameters

### authorization

* **Type:** `Rpc`

The RPC-formatted Authorization.

## Return Type

A signed [`Authorization.Authorization`](/docs/utilities/authorization/types#authorization).

[`Signed`](/docs/utilities/authorization/types#authorizationsigned)
