AuthorizationTempo.toTupleList
Converts an AuthorizationTempo.List to an AuthorizationTempo.TupleList.
Imports
Named
import { AuthorizationTempo } from 'ox/tempo'Examples
import { AuthorizationTempo } from 'ox/tempo'
const authorization_1 = AuthorizationTempo.from({
address: '0x1234567890abcdef1234567890abcdef12345678',
chainId: 1,
nonce: 69n,
})
const authorization_2 = AuthorizationTempo.from({
address: '0x1234567890abcdef1234567890abcdef12345678',
chainId: 3,
nonce: 20n,
})
const tuple = AuthorizationTempo.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/tempo/AuthorizationTempo.ts
Parameters
list
- Type:
list | undefined - Optional
Return Type
An EIP-7702 AA Authorization tuple list.
toTupleList.ReturnType<list>

