TxEnvelopeEip8141.hash
Hashes an EIP-8141 transaction, excluding its blob sidecars.
Imports
Named
import { TxEnvelopeEip8141 } from 'ox'Examples
Basic Usage
import { Frame, TxEnvelopeEip8141 } from 'ox'
const hash = TxEnvelopeEip8141.hash({
chainId: 1,
frames: [Frame.from({})],
sender: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
})Definition
function hash(
envelope: PartialBy<TxEnvelopeEip8141, 'type'>,
options?: hash.Options,
): Hex.HexSource: src/core/TxEnvelopeEip8141.ts
Parameters
envelope
- Type:
PartialBy<TxEnvelopeEip8141, 'type'>
The transaction envelope to hash.
options
- Type:
hash.Options - Optional
Hashing options.
options.presign
- Type:
boolean - Optional
Whether to compute the canonical signing digest.
Return Type
The transaction hash or signing digest.
Hex.Hex

