Authorization.toTupleList
Converts an Authorization.List
to an Authorization.TupleList
.
Imports
Named
import { Authorization } from 'ox'
Examples
import { Authorization } from 'ox'
const authorization_1 = Authorization.from({
address: '0x1234567890abcdef1234567890abcdef12345678',
chainId: 1,
nonce: 69n,
})
const authorization_2 = Authorization.from({
address: '0x1234567890abcdef1234567890abcdef12345678',
chainId: 3,
nonce: 20n,
})
const tuple = Authorization.toTupleList([authorization_1, authorization_2])
[ [ address: '0x1234567890abcdef1234567890abcdef12345678', chainId: 1, nonce: 69n, ], [ address: '0x1234567890abcdef1234567890abcdef12345678', chainId: 3, nonce: 20n, ], ]
Definition
function toTupleList<list>(
list?: list | undefined,
): toTupleList.ReturnType<list>
Source: src/Authorization.ts
Parameters
list
- Type:
list | undefined
- Optional
Return Type
An EIP-7702 Authorization tuple list.
toTupleList.ReturnType<list>