Skip to content

AuthorizationTempo.toTuple

Converts an AuthorizationTempo.AuthorizationTempo to an AuthorizationTempo.Tuple.

Imports

Named
import { AuthorizationTempo } from 'ox/tempo'

Examples

import { AuthorizationTempo } from 'ox/tempo'
 
const authorization = AuthorizationTempo.from({
  address: '0x1234567890abcdef1234567890abcdef12345678',
  chainId: 1,
  nonce: 69n,
})
 
const tuple = AuthorizationTempo.toTuple(authorization)
[
address: '0x1234567890abcdef1234567890abcdef12345678',
chainId: 1,
nonce: 69n,
]

Definition

function toTuple<authorization>(
  authorization: authorization,
): toTuple.ReturnType<authorization>

Source: src/tempo/AuthorizationTempo.ts

Parameters

authorization

  • Type: authorization

The AuthorizationTempo.AuthorizationTempo.

Return Type

An EIP-7702 AA Authorization tuple.

toTuple.ReturnType<authorization>