Authorization.fromRpcList
Converts an Authorization.ListRpc
to an Authorization.List
.
Imports
Named
import { Authorization } from 'ox'
Examples
import { Authorization } from 'ox'
const authorizationList = Authorization.fromRpcList([{
address: '0x0000000000000000000000000000000000000000',
chainId: '0x1',
nonce: '0x1',
r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',
s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',
yParity: '0x0',
}])
Definition
function fromRpcList(
authorizationList: ListRpc,
): ListSigned
Source: src/core/Authorization.ts
Parameters
authorizationList
- Type:
ListRpc
The RPC-formatted Authorization list.
Return Type
A signed Authorization.List
.