Skip to content

@receipts:tx.gasUsed

Gas used by a transaction (units of gas, not wei).

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

Returns: number

@receipts:tx.gasUsed(hash chain?)
NameTypeDescription
hashbytes32Transaction hash
[chain]chainChain to look on (default: current chain)
# Read the gas used by a transaction
set $gas @receipts:tx.gasUsed(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)