Skip to content

AuthorizationTempo.toRpcList

Converts an AuthorizationTempo.List to an AuthorizationTempo.ListRpc.

Imports

Named
import { AuthorizationTempo } from 'ox/tempo'

Examples

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

Definition

function toRpcList(
  authorizationList: AuthorizationTempo.ListSigned,
): ListRpc

Source: src/tempo/AuthorizationTempo.ts

Parameters

authorizationList

  • Type: AuthorizationTempo.ListSigned

An AA Authorization List.

Return Type

An RPC-formatted AA Authorization List.

AuthorizationTempo.ListRpc