Developers
/General Message Passing
/Building applications with GMP
Building applications with GMP
There are four simple steps (two mandatory and two optional):
- Call the contract.
callContract
, orcallContractWithToken
.
- Pay gas to the Gas Services contract.
- (optional) Check the status of the call.
- (optional) Execute and recovery methods.
Step 1: Call the contract
Either:
- Send messages using [callContract], or
- 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].