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 validator.
Available Functionalityβ
Axelar enables powerful interchain features for builders on Linea.
- The ability to send tokens across blockchains
- 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:
- 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.
- 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:β
Contract | Network | Address | networkId |
---|---|---|---|
Gateway | Mainnet | 0xe432150cce91c13a887f7D836923d5597adD8E31 | 59144 |
Gateway | Testnet | 0xe432150cce91c13a887f7D836923d5597adD8E31 | 59140 |
Gas Service | Mainnet | 0x2d5d7d31F671F86C782533cc367F14109a082712 | 59144 |
Gas Service | Testnet | 0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6 | 59140 |
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.
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.
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.
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β
- Meet the community on Discord
- Dive into the data on the Axelarscan block explorer