Axelar GMP connects source contract calls to destination execution
Last updatedAxelar GMP carries application data across supported blockchains so a destination contract can perform the requested action. General Message Passing starts with a source-chain call that names the destination and supplies a payload. Relayers report the resulting event, validators check it, and authorization reaches the destination Gateway. A separate execution step then runs the receiving application’s logic and requires destination-chain gas. The EVM interfaces support messages alone or messages with supported Gateway tokens. Choosing between them changes the inputs and receiving contract. Funding execution through Gas Service or paying directly on the destination chain changes who arranges the final transaction.
Choosing a message call or a token-bearing call
A message-only call supplies a destination and payload; a token-bearing call also specifies a supported token and amount.
Data without a token transfer
The EVM Gateway method
callContract
takes the destination chain, destination contract address, and payload bytes. Those bytes contain the data that the destination application interprets. The receiving contract needs compatible decoding and application logic. Encoding a token name inside ordinary message data does not initiate a Gateway token transfer.
Data with supported Gateway tokens
The EVM method
callContractWithToken
adds the token symbol and amount to the message inputs. Its documented path requires a supported Gateway token and an eligible EVM destination. The receiving application uses the token-bearing executable interface to process that combination. Interchain Token Service provides a separate token-integration model with its own contracts; its registration process differs from initiating this Gateway call.
Source events reach validators through relayers
In the core Gateway flow, relayers report events, and participating validators verify them before authorizing a destination action. Validators check observations from the relevant source chain, while Axelar’s proof-of-stake consensus records the accepted event. After the network queues the message and obtains signing authorization, a relayer submits that authorization to the destination Gateway. This division allows relay services to move messages without independently deciding which destination actions the Gateway should authorize.
What does Gateway approval authorize?
Gateway approval authorizes a specific destination call after Axelar validates and signs the corresponding cross-chain message.
Approval records the message
The destination Gateway records approval for the contract call and its payload hash, binding authorization to the supplied bytes. Changing the payload changes its hash, so an approval for one payload cannot authorize a different payload. Gateway validation checks the command identifier, source chain, source address, and payload hash for the receiving application.
Execution checks that approval
In the EVM executable path, an executor calls the application’s external
execute()
entry point.
AxelarExecutable checks Gateway approval before running the application’s internal execution logic.
The application implements
_execute()
, while the inherited entry point validates the message and prevents replay after successful execution.
The token-bearing path uses
executeWithToken()
and the application’s
_executeWithToken()
logic. Its validation covers the approved message and token transfer. The destination logic receives the token symbol and amount alongside the payload.
Application logic applies its own conditions
The receiving contract’s decoding and business rules can reject an authenticated message during destination execution. Network approval establishes authorization for delivery; the application’s implementation determines whether the requested action can finish successfully. A destination revert therefore requires attention to the contract’s actual error.
How can an application fund destination execution?
An application can prepay through Gas Service on the source chain or pay execution gas directly on the destination chain.
Prepaid relay and execution
Gas Service accepts the source chain’s native currency to fund cross-chain processing and destination transactions. The source-chain transaction also incurs its own network cost. The cross-chain estimate includes a network base fee and a destination execution fee. The base fee depends on the chains involved. Execution cost varies with destination gas prices and the work that the receiving contract performs. The AxelarJS SDK’s
estimateGasFee()
method combines these components, with its
gasLimit
input representing estimated destination execution gas. A deposit covers that estimate; sufficient funding remains a condition for automated execution.
Direct destination payment
Direct execution uses destination-chain gas when submitting the approved call. This option requires access to the destination’s native gas token. Source-chain prepayment lets Gas Service arrange destination payment from the deposit. Both approaches still rely on the same approved message and compatible receiving logic. Gas payment and message authorization solve different requirements.
Finality and gas prices change the waiting time
Completion time includes source-chain finality, Axelar processing, destination relay, and execution. An included source transaction may still await the finality that its integration requires. Blockchains use different confirmation rules, and congestion can change transaction inclusion times. Consequently, the same source and destination can produce different completion times across separate calls. Paying for execution does not remove the source chain’s confirmation requirement.
Changing destination gas prices can make a prepaid estimate insufficient after source finality, creating a funding delay separate from confirmation. A chain’s block time measures block production, not the message’s full cross-chain duration. Progress records identify which stage still awaits action.
Does an approved call prove that the destination action finished?
An approved call still needs successful destination execution before the application can treat its requested action as complete.
Axelarscan separates the source contract call, gas payment, call approval, execution result, and any gas refund. The EXECUTED section on Axelarscan reports whether destination execution succeeded or failed. A recorded gas payment establishes funding activity. The relevant destination receipt and application state establish what the receiving contract actually completed.
In this hypothetical case, a message-only call asks a compatible destination contract to store a message. Assume its payload is valid and the Gateway has approved it. Prepaid gas falls short, and Axelarscan shows Insufficient Fee. Continuing requires the destination contract to store the requested message.
Adding gas on the source chain changes the execution budget without changing the approved payload. Assume the added payment covers the required costs and execution encounters no other error. Gas Service relays and executes the call, and the destination contract stores the requested message. Check the destination receipt for success, then read the stored message from the receiving contract.
A successful receipt and the expected stored message satisfy the condition for continuing. A revert or a different stored value leaves that condition unmet. Additional gas resolves a funding shortage; incompatible contract logic requires a different remedy.
The call identifiers that connect both chains
A source transaction hash locates the initiating transaction, while the payload hash identifies its exact message bytes. The
commandId
identifies the Gateway command involved in destination validation. A source transaction hash therefore cannot replace the
commandId
parameter that a destination validation call expects.
Axelarscan presents individual call records for inspection. The AxelarJS SDK supports programmatic transaction-status queries and recovery operations. The explorer suits an individual investigation; an application that needs to follow calls automatically can query status through the SDK.
Answers to common questions
Can an upgradeable contract receive GMP without inheriting AxelarExecutable?
An upgradeable destination contract can implement its own execution entry point when inheritance does not suit its initialization design. That entry point must perform Gateway validation before running message logic. Exposing execute() alone omits the approval check that the inherited executable normally supplies.
Can a single source transaction send GMP messages to several destinations?
Gas Service can cover GMP messages to several destination chains from one source transaction when its single payment includes the full gas requirement for every message, including the relevant destination execution costs.
Will a gas refund reverse an executed GMP call?
A gas refund returns unused prepaid fees without reversing the destination contract’s executed action. The refund calculation deducts the network base fee, execution costs, and an allowance for refund processing. Any reversal of an application action would require a separate mechanism that the application supports.
Is the Axelar blockchain a supported destination for callContractWithToken?
The documented Gateway-token GMP interface does not support callContractWithToken transfers to the Axelar blockchain itself. Its destination must be an eligible supported EVM chain. Sending this token-bearing call to the Axelar blockchain leaves it stuck under this documented restriction.
Where does sourceAddress come from in a Gateway contract call?
In the EVM Gateway interface, sourceAddress identifies the account or contract that directly called the source Gateway. When an application contract makes that call, the message identifies that contract as the source address. The field therefore need not identify the wallet that initiated an earlier interaction with the application.
Does a return GMP call share the outbound call’s gas estimate?
A return GMP call needs its own direction-specific gas estimate, and an automated round trip requires funding for both directions. Reversing source and destination can change the cost. Express both estimates in the same payment token and units before adding them; using the outbound estimate twice can miss the return leg’s cost.
Does an unavailable SDK status prove that a GMP call failed?
An unavailable SDK status does not establish whether the destination call succeeded or failed. CANNOT_FETCH_STATUS reports an inability to retrieve status; DEST_EXECUTE_ERROR identifies a destination execution error. The destination receipt and matching application state provide evidence of the outcome when a status query cannot retrieve it.