# FundingPolicy.fromRpc

Converts an RPC policy authorization to its domain 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.fromRpc('0x7')
```

## Definition

```ts
function fromRpc(
  value: Rpc,
): Authorization
```

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

## Parameters

### value

* **Type:** `Rpc`

#### value.admins

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

Accounts authorized to modify the policy.

#### value.maxSlippageBps

* **Type:** `number`

Maximum aggregate slippage in basis points.

#### value.rules

* **Type:** `{ maxSlippageBps: number; sources: Readonly; }`

Committed funding permissions.

#### value.sources

* **Type:** `Readonly`

Ordered source permissions for each output token.

## Return Type

`Authorization`
