Devnet Testing Guide
This document describes how to test IBC Eureka on Devnet
Background
IBC Eureka is the official native implementation of IBC v2 that leverages the Cosmos Hub and Interchain Labs contracts, relayers, and infrastructure to enable seamless cross-chain user and liquidity mobility.
The following guide explains how to test IBC Eureka’s Devnet deployment via a CLI tool developed to interact with IBC Eureka, enabling trust-minimized token transfers between Ethereum and Cosmos chains.
Prerequisites
- Go 1.19 or later
- Access to Ethereum and Cosmos endpoints
- Private keys for both chains
- Sepolia ETH for gas fees on the Ethereum Sepolia Testnet
- An ERC20 token on Ethereum Sepolia Testnet
Installation
- First clone the repository
- Navigate to where the repo now lives on your machine
- Fetch and checkout the devnet deployment branch that contains the CLI tool:
- Move into the
cmd
folder to build the CLI
- Build the CLI tool to test transferring and relaying Eureka packets on devnet
Keys
Once the CLI is built, the next steps are to set up the Ethereum Sepolia and Cosmos devnet keys and addresses to use. Currently, you’ll need to store your private keys for both Cosmos and Ethereum as environment variables.
-
Warning: Do not use mainnet keys for this testing CLI.
There are three accounts required:
ETH_PRIVATE_KEY:
You can retrieve an Ethereum private key from within Metamask by creating a new account > navigating to “Account details” > and pressing “Show private key”- To test a transfer from Ethereum Sepolia to the Cosmos Devnet, you’ll need to have testnet ETH on this account. You can use any Ethereum Sepolia faucet for this, an example is: Google Cloud Ethereum Sepolia Faucet
- You’ll also be transferring an ERC20 token. You can use Token Tool to create a new ERC20 token on Ethereum Sepolia Testnet and use that in your command to do a Eureka transfer from Sepolia Testnet to Cosmos Devnet.
COSMOS_PRIVATE_KEY:
This will be used as the receiver of an Ethereum Sepolia to Cosmos Devnet transfer and initiates transfers in the opposite direction. You can retrieve a Cosmosunarmored-hex
private key by following the following steps:- Installing a node daemon CLI:
simd
orgaiad
. - Adding keys to the daemon CLI:
gaiad keys add <account-name> --recover
- Entering the BIP-39 mnemonic for the account you want to add. (Remove
--recover
to generate new) - Exporting the unarmored hex:
gaiad keys export <account-name> --unarmored-hex --unsafe
- Installing a node daemon CLI:
RELAYER_WALLET:
For devnet, we are providing relayer keys manually. Reach out to the Interchain Labs team, and we will provide the private key for your use.
Note: All three of the above are hexadecimal private keys, each 64 characters long.
Once all the necessary private keys are obtained, run the following command to set them as environment variables:
Commands
Transfer ERC20 Tokens from Ethereum to Cosmos
Format:
Example:
This will give you a tx hash
in the output.
Relay the Transaction
Format:
Example:
Check Balance of Ethereum Sepolia Account
Format:
Example:
Example Output:
Coming Soon
- Script/CLI command to send IBC Eureka transfers from Cosmos to Ethereum.
- Deployment of CosmWasm forwarding contracts to test Ethereum → Cosmos Chain A → Cosmos Chain B.