# FundingPolicy.toRpc

Converts a policy authorization to its RPC representation.

## Imports

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

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

## Examples

```ts
import { FundingPolicy } from 'ox/tempo'

FundingPolicy.toRpc(7n)
```

## Definition

```ts
function toRpc(
  value: Authorization<bigint | number | Hex.Hex>,
): Authorization<Hex.Hex>
```

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

## Parameters

### value

* **Type:** `Authorization<bigint | number | Hex.Hex>`

#### value.admins

* **Type:** `readonly abitype_Address[]`

Accounts authorized to modify the policy.

#### value.rules

* **Type:** `Rules`

Committed funding permissions.

## Return Type

`Authorization<Hex.Hex>`
