How to Use Omnigas to Transfer Native Tokens Between Chains
In this article, I’ll tell you about a new cross-chain tool, that allows you to transfer native tokens between chains quickly. We will look at the main features, how to work with Omnigas, why you could need it, and how I implemented this dApp from scratch. So let’s start!
About Omnigas
Omnigas — is a cross-chain tool allowing you to send native tokens between chains to cover commissions on the destination chain. Currently, it supports 8 chains: #BSC, #FTM, #AVAX, #MATIC, #zkEVM, #zkSync, #OP, and #ARB.
Omnigas UI allows you to easily specify the desired amount for transfer, receiver wallet on the destination chain, and monitor current limits for specified paths. You don’t have to consider this tool as a bridge, as you won’t be able to send big amounts of funds through it.
Main Features
- No centralized liquidity pools. Omnigas doesn’t handle liquidity at all. It relies on the root LZ Relayer for refuel purposes, considering it’ll work until the LayerZero relayer works. Hence, there is no risk of a lack of liquidity on the destination chain.
- No extra limits. Though you can’t transfer much money through the Omnigas as it is intended for covering commissions on another chain, it has a bigger cap for some routes than existing solutions (e.g. Bungee).
- Built on top of the LayerZero protocol, so you could increase your airdrop chances by using Omnigas.
#Overview and How to use it
Here is a simple instruction on how you can transfer your tokens through Omnigas:
- Visit omnigas.xyz
- Connect your wallet
- Select source and destination chains
- Specify the amount to bridge
- Set receiver address
- Click on the Refuel button
- Submit TX in your wallet
It takes about 5 mins for funds to come to the destination chain. After submitting the transaction, you’ll get the link to the scanner to track your cross-chain swap’s current status on LayerZeroScan.
Comparison with competitors
Currently, there are a few alternative solutions to Omnigas on the market. In this section, I’ll compare all of them so you can decide which one is more suitable for your cases.
Worth mentioning, that limits for some routes are higher for Omnigas than for Bungee. Also, Stargate doesn’t allow you to refuel without bridging some tokens to the destination chain. All in all, I tried to take the best from these services to Omnigas.
Development Process
As we have fancy protocols like LayerZero, ZkSync, and Starknet coming to the blockchain space, I wanted to test them out from the development perspective. I’ve decided to start with LayerZero and try their cross-chain messaging mechanism for implementing a simple dApp.
For website development, I’ve used Next.js and ethers.js for communication with the blockchain. Moreover, I needed some sort of API to get the current prices of native tokens. For now, Omnigas is using the CryptoCompare API. Hopefully, I’ll upgrade the API plan and RPC nodes after getting some investments. Currently, Omnigas was totally launched on my own and I cover all of the expenses.
Under the hood, Omingas uses LayerZero messaging technology and official Relayers launched on chains to airdrop tokens. Transfer fees are coming from the LayerZero Relayer, as well as path caps.
Conclusion
I hope you would find Omnigas a useful tool for your airdrop hunting or just transferring tokens cross-chain. It’s super raw now but I’ll work on improving it and adding new features, fixing issues. Would be grateful for any feedback and support!