Skip to content
General Message Passing
Building applications with GMP

Building applications with GMP

There are four simple steps (two mandatory and two optional):

  1. Call the contract.
    • callContract, or
    • callContractWithToken.
  2. Pay gas to the Gas Services contract.
  3. (optional) Check the status of the call.
  4. (optional) Execute and recovery methods.

Step 1: Call the contract


  1. Send messages using [callContract], or
  2. Send tokens with messages using [callContractWithToken].

Step 2: Pay gas to the Gas Services contract

See [Gas Services].

Step 3: (optional) Check the status of the call

See [Monitoring state of transactions].

Step 4: (optional) Execute and recovery methods

Axelar network provides an optional relayer service, called Gas Services, which automatically relays transactions and executes approved messages.

However, due to chains' conditions (either from the source or destination or both chains), some unexpected scenarios can occur, and the transaction might not be successfully executed. Axelar provides two options to recover these possible cases. See [Transaction Recovery].