TransactionEnvelopeEip1559.deserialize
Deserializes a TransactionEnvelopeEip1559.TransactionEnvelopeEip1559
from its serialized form.
Imports
Named
import { TransactionEnvelopeEip1559 } from 'ox'
Examples
import { TransactionEnvelopeEip1559 } from 'ox'
const envelope = TransactionEnvelopeEip1559.deserialize('0x02ef0182031184773594008477359400809470997970c51812dc3a010c7d01b50e0d17dc79c8880de0b6b3a764000080c0')
{ type: 'eip1559', nonce: 785n, maxFeePerGas: 2000000000n, gas: 1000000n, to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', value: 1000000000000000000n, }
Definition
function deserialize(
serialized: TransactionEnvelopeEip1559.Serialized,
): Compute<TransactionEnvelopeEip1559>
Source: src/TransactionEnvelopeEip1559.ts
Parameters
serialized
- Type:
TransactionEnvelopeEip1559.Serialized
The serialized transaction.
Return Type
Deserialized Transaction Envelope.
Compute<TransactionEnvelopeEip1559>