OutOfGas

Error v334 → current 29.2

The contract execution ran out of gas before completing.

Encountered by: developers

Why This Error Exists

Gas limits protect the network from resource exhaustion. Either your limit is too low or the contract needs optimization.

From Chain Metadata

The executed contract exhausted its gas limit.

What This Means

The contract execution ran out of gas before completing.

Common Causes

  • Gas limit set too low for the operation
  • Contract contains infinite or very long loops
  • Complex computation exceeds gas budget

How to Fix

  • Increase gas_limit parameter
  • Use dry-run (contracts_call RPC) to estimate required gas
  • Optimize contract code for gas efficiency
  • Split complex operations into multiple calls

Runtime Info

Pallet Index
29
Error Index
2
Error Code
29.2
Runtime Version
v393