Bridging G7
The canonical fungible token Bridge for the G7 Network and more
Last updated
The canonical fungible token Bridge for the G7 Network and more
Last updated
The Game7 Bridge enables fungible token transfers between Layer 1 and Layer 2 blockchains (such as Ethereum and Arbitrum) to the G7 Network (a Layer 3 network). In addition to working similarly to common blockchain bridges, the Game7 Bridge delivers another feature with the inclusion of a messaging protocol built into the UI of the Bridge application.
The messaging protocol sends transactions through a specific smart contract (InboxContract
) to create retryable tickets. Retryable tickets are a component of how one Layer communicates with another. This allows developers to generate transactions in the destination Layer by sending one to the origin Layer. Messaging enables us to send multiple retryable tickets in the same transaction on a Layer 1, triggering another retryable ticket on Layer 2, creating a chained transaction that ultimately reaches Layer 3. You can read more information on this here.
The Game7 Bridge is currently available on Ethereum Sepolia, Arbitrum Sepolia, G7 Sepolia testnets, and Ethereum, Arbitrum One, and the G7 Network mainnets.
The Game7 Bridge is available for both developers and general users to easily transfer and withdraw supported fungible tokens to and from the G7 Network.
The testnet version of the Game7 Bridge can be accessed in the Game7 DevHub.
For developers who are looking to provide a more seemless user experience, there will be a Game7 Bridge Client SDK. This SDK enables developers to integrate the Game7 Bridge into their applications and games, creating a far more streamlined user experience that ensures players remain inside your game.
Using the Game7 Bridge on either testnet or mainnet networks, will require gas tokens for the networks being utilized. In the case of G7 Sepolia, TG7T is required, while on Ethereum Sepolia and Arbitrum Sepolia, testnet ETH will be required.
In the below guide, we will reference testnet in the supporting images, but the flow is the same for mainnet. The only difference is that the gas tokens needed will be G7 on the G7 Network, and mainnet ETH on Ethereum and Arbitrum One.
Navigate to the Game7 Bridge in the Game7 DevHub and connect a supported wallet such as Metamask.
With your wallet connected, choose the network you want to bridge tokens From and To. Switch the network in your wallet to the From network (this will often be prompted automatically).
Select the token you wish to bridge. Enter the amount of the token into Amount field.
Note: Before being able to confirm the bridging action, you will need to ensure you have enough appropriate tokens for gas for the transaction fees.
Once you click Submit, you will be prompted to approve the transaction in the connected Metamask or an equivalent wallet.
You will also see a notification about the request and status of a successfully approved transaction. The transaction status icon contains a link to the relevant network's Block Explorer.
When you choose to Deposit tokens to the G7 Network or G7 Sepolia, the tokens will be received to your connected wallet once the transaction has finalized.
When you choose to Withdraw tokens from the G7 Network or G7 Sepolia, once the transaction is finalized, the tokens will not be available in your connected wallet until you have manually selected to Withdraw the tokens via a Claim Now button. This can be done in the History page.
As with other Layer 3 networks, there are challenge periods for withdrawing tokens back from the G7 Network. This challenge period is standard for Optimistic rollups and exists for fraud proofs, ensuring that only legitimate transactions are finalized.
The challenge period is one hour for G7 Sepolia, and seven days for G7 Network withdrawals when utilizing the Game7 Bridge.
You will see your pending claims transactions in the History tab.