Skip to main content

Axelar Network

The Axelar Network, is a blockchain of blockchains that allows for universal web3 interoperability. By integrating with Axelar, your Linea based application now has access to the 45+ chains that are also connected via Axelar. As Axelar is a blockchain of blockchains it overcomes many of the challenges of more centralized interoperability solutions. Transactions that go through the Axelar network cannot be censored by any oracle, relayer, or sequencer.

Available Functionality​

Axelar enables powerful interchain features for builders on Linea.

  1. The ability to send tokens across blockchains
  2. The ability to send general messages across blockchains

Linea Integration​

When integrating with Axelar there are two key contracts that need to be utilized. These are:

  1. The Axelar Gateway
    • On the source chain, this contract exposes the functions which you will use to initiate an interchain transaction.
    • On the destination chain, this contract enables messages to be executed automatically to complete the interchain transaction.
  2. The Axelar Gas Service
    • This contract is the entrypoint into Axelar's gas service, which handles gas payment for your transaction on both the Axelar network and the destination chain. You as the caller now only need the gas of the source chain.

Contract Addresses:​

ContractNetworkAddressnetworkId
GatewayMainnet0xe432150cce91c13a887f7D836923d5597adD8E3159144
GatewayTestnet0xe432150cce91c13a887f7D836923d5597adD8E3159140
Gas ServiceMainnet0x2d5d7d31F671F86C782533cc367F14109a08271259144
Gas ServiceTestnet0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc659140

Once you have submitted your transaction you can now view it on the Axelarscan block explorer. The Axelarscan explorer is specifically tailored to show your interchain transaction step by step as it passed from the source chain via the Axelar network to the destination chain.

Linea-Axelar Example​

For a full end-to-end example of a Linea-Axelar integration here is a video walkthrough of the process, the complementary code can be found here.

Axelar Use Cases​

For inspiration here of what sort of interchain applications can be built on top of Axelar here are some live use cases.

  1. Interchain Token Swaps (Eg. Squid)

    • Squid is an exciting new protocol built on top of Axelar that allows users to swap tokens with a uniswap like experience but leverages Axelar for swaps between tokens across different blockchains. Squid takes DeFi to the next level restricting the need to revert to centralized exchanges or multiple different exchanges to swap tokens across chains.
  2. Interchain Lending (Eg. Prime Protocol)

    • A chain-agnostic prime brokerage that allows users to deposit assets from any connected chain and use their aggregate value in collateral for loans, on any other connected chain. Prime offers the ability to build interchain applications that connect from any blockchain to any blockchain, rather than just connecting a series of blockchains to ethereum. Prime's interchain design allows for a variety of new defi use cases including cross-chain margining.
  3. Interchain Gaming (Eg. Junkyard)

    • Web3 gaming is heavily reliant on the use of NFTs. For NFT based games to maximize their use case, allowing them to be passed between blockchains is a critical next step. Junkyard leverages Axelar to allow for interchain NFTs in its game. In Junkyard, players are able to deposit their NFTs to the Junkyard contract, the NFT can come from any chain connected in the Axelar ecosystem, including Linea.

Get Involved With Axelar​

  1. Meet the community on Discord
  2. Dive into the data on the Axelarscan block explorer