# FrameSignature.fromRpc

Converts an RPC signature entry to a structured frame signature.

## Imports

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

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

## Examples

### Basic Usage

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

const entry = FrameSignature.fromRpc({
  msg: '0x',
  scheme: 0,
  signature: '0xdeadbeef'
})
```

## Definition

```ts
function fromRpc(
  entry: Rpc,
): FrameSignature
```

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

## Parameters

### entry

* **Type:** `Rpc`

The value to convert.

#### entry.msg

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

Explicit digest, or empty bytes for the transaction signing hash.

#### entry.scheme

* **Type:** `0 | 1 | 2`

Signature verification scheme.

#### entry.signature

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

Encoded signature bytes.

#### entry.signer

* **Type:** `Address.Address | null | undefined`
* **Optional**

Signer address; absent for the transaction sender.

## Return Type

The converted value.

`FrameSignature`
