Skip to content

AuthorizationTempo.toRpc

Converts an AuthorizationTempo.AuthorizationTempo to an AuthorizationTempo.Rpc.

Imports

Named
import { AuthorizationTempo } from 'ox/tempo'

Examples

import { AuthorizationTempo } from 'ox/tempo'
 
const authorization = AuthorizationTempo.toRpc({
  address: '0x0000000000000000000000000000000000000000',
  chainId: 1,
  nonce: 1n,
  signature: {
    type: 'secp256k1',
    signature: {
      r: 44944627813007772897391531230081695102703289123332187696115181104739239197517n,
      s: 36528503505192438307355164441104001310566505351980369085208178712678799181120n,
      yParity: 0,
    },
  },
})

Definition

function toRpc(
  authorization: Signed,
): Rpc

Source: src/tempo/AuthorizationTempo.ts

Parameters

authorization

  • Type: Signed

An AA Authorization.

Return Type

An RPC-formatted AA Authorization.

Rpc