Skip to content

TransactionEnvelopeEip7702.deserialize

Deserializes a TransactionEnvelopeEip7702.TransactionEnvelopeEip7702 from its serialized form.

Imports

Named
import { TransactionEnvelopeEip7702 } from 'ox'

Examples

import { TransactionEnvelopeEip7702 } from 'ox'
 
const envelope = TransactionEnvelopeEip7702.deserialize('0x04ef0182031184773594008477359400809470997970c51812dc3a010c7d01b50e0d17dc79c8880de0b6b3a764000080c0')
{
authorizationList: [...],
type: 'eip7702',
nonce: 785n,
maxFeePerGas: 2000000000n,
gas: 1000000n,
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
value: 1000000000000000000n,
}

Definition

function deserialize(
  serialized: Serialized,
): Compute<TransactionEnvelopeEip7702>

Source: src/TransactionEnvelopeEip7702.ts

Parameters

serialized

  • Type: Serialized

The serialized transaction.

Return Type

Deserialized Transaction Envelope.

Compute<TransactionEnvelopeEip7702>