Overview
TransactionHash is a brandedUint8Array type representing a 32-byte transaction identifier in Ethereum. Every transaction has a unique hash computed from its contents.
Type Definition
Creating TransactionHashes
from
Universal constructor accepting hex string or bytes.fromHex
Parse from hex string (with or without 0x prefix).fromBytes
Create fromUint8Array.
Converting TransactionHashes
toHex
Convert to lowercase hex string with 0x prefix.Comparing TransactionHashes
equals
Check equality using constant-time byte comparison.Errors
InvalidTransactionHashLengthError: Bytes length is not 32. InvalidTransactionHashFormatError: Invalid hex format or unsupported type.See Also
- TransactionHash (Effect) - Effect.ts integration with Schema validation
- BlockHash - Block identifier
- Receipt - Transaction receipts
- EventLog - Event logs

