# Gas budget bigger than all Coins

**URL:** <https://forums.sui.io/t/gas-budget-bigger-than-all-coins/3956>\
**Category:** SDK\
**Created:** [January 29, 2023, 7:51am UTC](https://forums.sui.io/t/gas-budget-bigger-than-all-coins/3956 "2023-01-29T07:51:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amnn](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/amnn/32/25_2.png) [@amnn](https://forums.sui.io/u/amnn)\
**Post date:** [January 29, 2023, 7:51am UTC](https://forums.sui.io/t/gas-budget-bigger-than-all-coins/3956/1 "2023-01-29T07:51:48Z")

</div>

The `GasBalanceTooLowToCoverGasBudget` error means that the Coin used to pay for gas has a lower balance than the budget, it can be fixed in the following ways:

1. If you explicitly selected a gas coin by supplying its ID, try selecting one with a bigger balance (use `sui client gas` for a list of coins owned by your address).
2. If you can control the budget, try setting it to a lower value (but note that the transaction may still fail if that budget is lower than the actual gas needed by the transaction).
3. If neither of these techniques work, or all of your gas coins have a lower balance than the budget you need to set, then you will need to **merge** coins together.

The PaySui transaction (see [`sui_paySui`](https://docs.sui.io/sui-jsonrpc#sui_paySui)) can be used to merge coins:

Pass the coins to merge as `input_coins` and set no `recipients` or `amounts`. The transaction will merge all the input coins into one, use it to pay for gas and leave the remainder (Note that you need to merge coins with enough balance to cover your future needs and the gas cost of the PaySui transaction as well).

See [this topic](https://forums.sui.io/t/how-to-execute-a-transaction-with-only-one-coin-sui-left/2266) for how to do the opposite (split coins) with the same transaction type.
