@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
Syntax
Section titled “Syntax”@receipts:tx.blobHash!(...index)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
[...index] | number | Blob index: a constant or an infix expression |
Examples
Section titled “Examples”load receipts
# The batch only executes as part of a blob-carrying transactionassert @tx.blobHash!(0) != 0x0000000000000000000000000000000000000000000000000000000000000000 "no blob attached"See Also
Section titled “See Also”- @receipts:block.hash! — the hash of a recent block