Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 640 Bytes

File metadata and controls

23 lines (14 loc) · 640 Bytes

@tevm/decorators


@tevm/decorators / Hash

Type Alias: Hash

Hash = `0x${string}`

Defined in: eip1193/misc.ts:20

Ethereum hash value represented as a hexadecimal string. Used for block hashes, transaction hashes, state roots, etc.

Example

import { Hash } from '@tevm/decorators'

const blockHash: Hash = '0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3'
const txHash: Hash = '0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060'