> For the complete documentation index, see [llms.txt](https://docs.aftermath.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aftermath.finance/getting-started/dynamic-gas.md).

# Dynamic Gas

Removing barriers to entry to the Sui Ecosystem

New users often lack the SUI they need to pay for transactions. Aftermath lets you pay gas without holding SUI in two ways: Gas Credit and Dynamic Gas.

## Gas Credit

Gas Credit is a prepaid gas balance. Deposit once, then pay network fees from it without holding SUI in your wallet.

Click **Gas Credit** in the header, next to Settings, to open the Gas Credit panel. The header button shows your balance. It shows **Set up** if your wallet has no Gas Credit yet or has not enabled it.

<figure><img src="https://3284144787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmeKfXaQnIP3bbI1AdlVX%2Fuploads%2Fgit-blob-019442e9df26025cd3d749bd70f5f2e0ad205c5e%2Fgas-credit-panel.png?alt=media" alt="Gas Credit panel with balance, Pay gas with Gas Credit switch, and Deposit, Withdraw, and Access tabs" width="375"><figcaption><p>Gas Credit panel</p></figcaption></figure>

The panel shows your balance and about how many transactions it covers. Below it are the **Pay gas with Gas Credit** switch and three tabs:

* **Deposit:** Add funds. Pick the coin to pay with. SUI is deposited directly, and any other coin is swapped to SUI first. If you have no Gas Credit yet, the button reads **Create & Deposit** and creates and funds it in one transaction.
* **Withdraw:** Move funds back to your wallet as SUI, or pick another coin to receive. A small minimum balance always stays in Gas Credit, so it cannot be fully withdrawn.
* **Access:** The addresses allowed to spend your Gas Credit. Enter an address or SuiNS name to give it access, or revoke an address. Your 1-Click Trading wallet appears here. An address you don't recognize may be a [1-Click Trading](/perpetuals/architecture/account/one-click-trading.md) wallet from another browser or device.

If Gas Credit is not enabled for your wallet, the panel shows **Enable**. Enabling it takes one transaction.

When **Pay gas with Gas Credit** is on, transactions you sign pay their fees from Gas Credit instead of your wallet. This applies across trade, pool, farm, and vault transactions. [1-Click Trading](/perpetuals/architecture/account/one-click-trading.md) always uses Gas Credit.

When your balance runs low, the app opens the Gas Credit panel once so you can deposit more.

To sponsor gas for bots or agent wallets through the API, see [Gasless Trading (GasPool)](/perpetuals/architecture/account/gasless-trading.md).

## Dynamic Gas

Dynamic Gas lets you pay for gas with coins other than SUI. It relies on two Sui-native features: Sponsored Transactions and Programmable Transactions. Aftermath sponsors the transaction with SUI and takes payment from you in another coin, all in one transaction.

Dynamic Gas supports multiple stablecoins and Sui ecosystem tokens. You do not pick the coin. The app uses the supported coin in your wallet with the highest dollar value.

For most transactions, the app pays gas in this order. Deposits into Gas Credit itself are paid from your wallet SUI or with Dynamic Gas.

1. Gas Credit, if **Pay gas with Gas Credit** is on and your Gas Credit has enough balance.
2. SUI in your wallet.
3. Dynamic Gas with a supported coin in your wallet.

If none of these is available, the app shows "You need SUI or a supported coin to pay for gas."

When Dynamic Gas pays for a transaction, the transaction shows an outflow of that coin. In the example below, LBTC paid for gas:

<div data-full-width="false"><figure><img src="https://3284144787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmeKfXaQnIP3bbI1AdlVX%2Fuploads%2FEVdkGvElkAAJhWfyiMzi%2FScreenshot%202025-04-23%20at%2012.19.15%E2%80%AFPM.png?alt=media&amp;token=8f08af30-ffc7-42e3-9ae3-e91efc35f06b" alt="Wallet approval showing a small LBTC outflow paid as gas" width="375"><figcaption><p>LBTC paid for gas with Dynamic Gas</p></figcaption></figure></div>
