Skip to content

Signature.toRpc

Converts a Signature.Signature into a Signature.Rpc.

Imports

Named
import { Signature } from 'ox'

Examples

import { Signature } from 'ox'
 
const signature = Signature.toRpc({
  r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,
  s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,
  yParity: 1
})

Definition

function toRpc(
  signature: Signature,
): Rpc

Source: src/core/Signature.ts

Parameters

signature

  • Type: Signature

The Signature.Signature to convert.

signature.r

  • Type: bigintType

signature.s

  • Type: bigintType

signature.yParity

  • Type: numberType
  • Optional

Return Type

The converted Signature.Rpc.

Rpc