@explorer:tx.gasUsed
Gas used by a transaction (units of gas, not wei).
⚗️ Experimental — available at next.evmcrispr.com.
Returns: number
Syntax
Section titled “Syntax”@explorer:tx.gasUsed(hash chain?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
hash | bytes32 | Transaction hash |
[chain] | chain | Chain to look on (default: current chain) |
Examples
Section titled “Examples”# Read the gas used by a transactionset $gas @explorer:tx.gasUsed(0x16df2e878e23ff261844fc9252f6c8bfcd4cb69f9f80895c6a2f01032b228e13)See Also
Section titled “See Also”- @explorer:tx.fee — total fee paid, in wei
- @explorer:tx — full transaction summary