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