Skip to content

Authorization.toRpcList

Converts an Authorization.List to an Authorization.ListRpc.

Imports

Named
import { Authorization } from 'ox'

Examples

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

Definition

function toRpcList(
  authorizationList: ListSigned,
): ListRpc

Source: src/core/Authorization.ts

Parameters

authorizationList

An Authorization List.

Return Type

An RPC-formatted Authorization List.

ListRpc