Skip to content
Developers
/
General Message Passing
/
Gas services
/
Increase Gas

Increase Gas

When needed, our smart contract can receive gas to top up an existing General Message Passing (GMP) transaction in the following ways:

addNativeGas

Pay additional gas to a transaction that needs it (referenced by its txHash) in native tokens on its EVM source chain.

  • In Solidity:
function addNativeGas(
    bytes32 txHash,
    uint256 logIndex,
    address refundAddress
) external payable override;
  • In JavaScript or TypeScript, the SDK abstracts a method that can be invoked directly in a web application. See SDK docs for Increase Native Gas Payment.

addGas

Pay additional gas to a transaction that needs it (referenced by its txHash) in any of Axelar's supported tokens on its EVM source chain.

  • In Solidity:
function addGas(
    bytes32 txHash,
    uint256 logIndex,
    address gasToken,
    uint256 gasFeeAmount,
    address refundAddress
) external override;

*** Can only be paid in tokens that Axelar supports. See the list of supported assets for the chains we support in Resources [Mainnet | Testnet | Testnet-2].