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 to see this value for the beta-2 network:
query {
chain {
consensusParameters {
maxGasPerTx
}
}
}
At the time of writing, this value is 500000000.