---
# System prepended metadata

title: Gas notes

---

Tx receipt

```
  to: '0x0000000000000000000000000000000000000800',
  from: '0x720D43a51aC03bfB9E901acaa86e100fe1A1Af1c',
  contractAddress: null,
  hash: '0x94a2bd90b4bb0d173b4a5a1ea55447218661be4ddb0ce6bbf3577512a389c69f',
  index: 2,
  blockHash: '0x17efdc09911bbcd23ab7890b01960d7789b44896db321aa92eebec27a96d7423',
  blockNumber: 18,
  logsBloom: '0x00000040000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000040000000004000000020000000000000000000000000000000000000000000000000000800000001000000000000000000000000000200000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000',
  gasUsed: 144331n,
  cumulativeGasUsed: 731134n,
  gasPrice: 96193706n,
  type: 2,
  status: 1,
  root: undefined
}
```

eth.getTransaction()

```
> eth.getTransaction("0x94a2bd90b4bb0d173b4a5a1ea55447218661be4ddb0ce6bbf3577512a389c69f")
{
  accessList: [],
  blockHash: "0x17efdc09911bbcd23ab7890b01960d7789b44896db321aa92eebec27a96d7423",
  blockNumber: 18,
  chainId: "0x2328",
  from: "0x720d43a51ac03bfb9e901acaa86e100fe1a1af1c",
  gas: 216147,
  gasPrice: 96193706,
  hash: "0x94a2bd90b4bb0d173b4a5a1ea55447218661be4ddb0ce6bbf3577512a389c69f",
  input: "0x53266bbb000000000000000000000000720d43a51ac03bfb9e901acaa86e100fe1a1af1c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000003365766d6f7376616c6f70657231397161797336716361636d74797a71383673707579727a3536736c366c726635356e6874363800000000000000000000000000",
  maxFeePerGas: 139137324,
  maxPriorityFeePerGas: 0,
  nonce: 9,
  r: "0x6536027aa18bb642d526e8cc86484e1350742365cce605dcc8b11ef599361531",
  s: "0x6645f0556ba4f9c2199a7ab4a81aa512e0eecc5c44ac5b7bf66e4381f92a0099",
  to: "0x0000000000000000000000000000000000000800",
  transactionIndex: 2,
  type: "0x2",
  v: "0x0",
  value: 0
}
```


debug_traceTransaction (with the fix. otherwise get an out of gas error)
```
curl http://localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"debug_traceTransaction","params":["0x94a2bd90b4bb0d173b4a5a1ea55447218661be4ddb0ce6bbf3577512a389c69f", {"tracer": "callTracer" } ], "id":1,"jsonrpc":"2.0"}' | jq

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "from": "0x720d43a51ac03bfb9e901acaa86e100fe1a1af1c",
    "gas": "0x2f357", // 193367
    "gasUsed": "0x1dacf", // 121551
    "input": "0x53266bbb000000000000000000000000720d43a51ac03bfb9e901acaa86e100fe1a1af1c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000003365766d6f7376616c6f70657231397161797336716361636d74797a71383673707579727a3536736c366c726635356e6874363800000000000000000000000000",
    "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "to": "0x0000000000000000000000000000000000000800",
    "type": "CALL",
    "value": "0x0"
  }
}
```