# SignatureEnvelope.toRpc

Converts a signature envelope to RPC format.

## Imports

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

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

## Examples

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

const rpc = SignatureEnvelope.toRpc({
  signature: {
    r: '0x0000000000000000000000000000000000000000000000000000000000000000',
    s: '0x0000000000000000000000000000000000000000000000000000000000000000',
    yParity: 0
  },
  type: 'secp256k1'
})
```

## Definition

```ts
function toRpc(
  envelope: toRpc.Input,
): SignatureEnvelopeRpc
```

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

## Parameters

### envelope

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

The signature envelope to convert.

## Return Type

The RPC signature envelope with hex values.

[`SignatureEnvelopeRpc`](/tempo/reference/SignatureEnvelope/types#signatureenvelopesignatureenveloperpc)
