# lastCallGas

Description: lastCallGas cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Environment/last-call-gas.mdx

### Signature

```solidity
struct Gas {
  /// The gas limit of the call.
  uint64 gasLimit;
  /// The total gas used.
  uint64 gasTotalUsed;
  /// DEPRECATED: The amount of gas used for memory expansion.
  uint64 gasMemoryUsed;
  /// The amount of gas refunded.
  int64 gasRefunded;
  /// The amount of gas remaining.
  uint64 gasRemaining;
}
function lastCallGas() external view returns (Gas memory gas);
```

### Description

Gets the gas used in the last call from the callee perspective.
