# AuthorizationTempo.toRpc

Converts an [`AuthorizationTempo.AuthorizationTempo`](/tempo/reference/AuthorizationTempo/types#authorizationtempo) to an [`AuthorizationTempo.Rpc`](/tempo/reference/AuthorizationTempo/types#rpc).

## Imports

:::code-group
```ts [Named]
import { AuthorizationTempo } from 'ox/tempo'
```

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

## Examples

```ts twoslash
import { AuthorizationTempo } from 'ox/tempo'

const authorization = AuthorizationTempo.toRpc({
  address: '0x0000000000000000000000000000000000000000',
  chainId: 1,
  nonce: 1n,
  signature: {
    type: 'secp256k1',
    signature: {
      r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',
      s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',
      yParity: 0
    }
  }
})
```

## Definition

```ts
function toRpc(
  authorization: toRpc.Input,
): Rpc
```

**Source:** [src/tempo/AuthorizationTempo.ts](https://github.com/wevm/ox/blob/main/src/tempo/AuthorizationTempo.ts#L954)

## Parameters

### authorization

* **Type:** `toRpc.Input`

An AA Authorization.

## Return Type

An RPC-formatted AA Authorization.

`Rpc`
