Authorization.toTuple
Converts an Authorization.Authorization
to an Authorization.Tuple
.
Imports
Named
import { Authorization } from 'ox'
Examples
import { Authorization } from 'ox'
const authorization = Authorization.from({
address: '0x1234567890abcdef1234567890abcdef12345678',
chainId: 1,
nonce: 69n,
})
const tuple = Authorization.toTuple(authorization)
[ address: '0x1234567890abcdef1234567890abcdef12345678', chainId: 1, nonce: 69n, ]
Definition
function toTuple<authorization>(
authorization: authorization,
): toTuple.ReturnType<authorization>
Source: src/Authorization.ts
Parameters
authorization
- Type:
authorization
The Authorization.Authorization
.
Return Type
An EIP-7702 Authorization tuple.
toTuple.ReturnType<authorization>