Skip to content
Gas & executor services

Refund the prepaid gas

The prepaid gas to payGasForContractCall or payGasForContractCallWithToken could exceed the needed amount for relaying a message to the destination contract.

The Executor Service automatically calculates the excess gas submitted and determines the amount to refund.

The refunded amount = The prepaid amount - the actual gas used - the estimated gas for transferring the refund.

After getting the refund amount, the service calls Refund in the Gas Receiver contract to refund it to the payer account. Then, the refund status will be shown on Axelarscan UI.