# How do I check the max gas allowed for a transaction?

**URL:** <https://forum.fuel.network/t/how-do-i-check-the-max-gas-allowed-for-a-transaction/1557>\
**Category:** Fuel Network\
**Created:** [January 19, 2023, 7:34pm UTC](https://forum.fuel.network/t/how-do-i-check-the-max-gas-allowed-for-a-transaction/1557 "2023-01-19T19:34:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sarah/32/13_2.png) [@sarah](https://forum.fuel.network/u/sarah)\
**Post date:** [January 19, 2023, 7:34pm UTC](https://forum.fuel.network/t/how-do-i-check-the-max-gas-allowed-for-a-transaction/1557/1 "2023-01-19T19:34:31Z")

</div>

You can check what the max allowed gas is for a transaction via the graphql API. You can paste the query below into the [beta-2 playground](https://node-beta-2.fuel.network/playground) to see this value for the beta-2 network:

```graphql
query {
  chain {
    consensusParameters {
      maxGasPerTx
    }
  }
}

```

At the time of writing, this value is 500000000.
