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