Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Gas Credit panel with balance, Pay gas with Gas Credit switch, and Deposit, Withdraw, and Access tabs
Gas Credit panel

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 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 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).

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:

Wallet approval showing a small LBTC outflow paid as gas
LBTC paid for gas with Dynamic Gas

Last updated