Skip to content

@receipts:tx.blobHash!

Versioned hash of a blob carried by the executing transaction, or 0 when the index is out of range.

⚗️ Experimental — available at next.evmcrispr.com.

Returns: bytes32

@receipts:tx.blobHash!(...index)
NameTypeDescription
[...index]numberBlob index: a constant or an infix expression
load receipts
# The batch only executes as part of a blob-carrying transaction
assert @tx.blobHash!(0) != 0x0000000000000000000000000000000000000000000000000000000000000000 "no blob attached"