How To Deploy a Hyperlane Bridge - Easy For Non-Devs

How to deploy hyperlane bridge with no code. Hyperlane warp route tutorial. no code. how to create a hyperlane bridge with no code.

How To Deploy a Hyperlane Bridge - Easy For Non-Devs

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1727291185799/cf8f93bf-7d6c-4268-ae59-73cb731484d9.png align=“center”)

This guide will show you how to deploy a Warp Route using the Hyperlane CLI.

You must have Node Installed on

Installing the Hyperlane CLI

  • To deploy the Warp Route contract, you’ll need to install the Hyperlane CLI via your MacOs terminal app.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1727291570951/443596f4-f347-4ed3-88e4-de84ec45e6e2.png align=“center”)

Run the command below to install it:

npm install -g @hyperlane-xyz/cli
```"

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmgcJQWPKqG66cPirxhdrQkZXg3kdE85kHbnQChgJ1wboDtPbAtpa6wDcqbb3eCTC98Wv1JZlDCqpv0k79x8e0L12mYSulD-Wp5yETWJOi7LHxJnGd4uQscG5OahRSVWyxoF8qAXFEfDPWUPFmsCNAJPiF?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

  • Once you’ve installed the Hyperlane CLI, execute the command:
hyperlane --version

This command checks the current version of the Hyperlane CLI installed on your machine. You should see an output similar to the following.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfGpIslXiGu3o6Dfa-v3bWQ_KS2EBYaPDOM9x4MPVYXFUOcOsFoQWMTaOTTXvJxbLP8qUw76ualvU7TmXLz34DNBKVvYHqrVkQKCfnQjH8NnrDvYgJIEMgErxT_-5v_dIQuq3sPYgOdd0XOdByYKXczAjI8?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

Creating a Burner Wallet

  • Before deploying the contract, you need to create a burner wallet and transfer a small amount of ETH to it for gas fees ($5 at least) . After setting up the wallet, you’ll need to export its private key to enable the Hyperlane CLI to access it.

In your terminal, run the following command, replacing “YOUR_PRIVATE_KEY” with the private key of the burner wallet you just created:

export HYP_KEY="YOUR_PRIVATE_KEY"

Initializing the Warp Route

Once you’ve exported your private key, you can initialize the Hyperlane Warp Route using the command:

hyperlane warp init

The Hyperlane CLI will automatically detect your wallet address from the exported private key. You’ll be prompted to confirm the public key; type Y in the prompt to confirm.

Next, you’ll be prompted in the terminal to choose between mainnet and testnet. We will be working with mainnet chains for this tutorial walkthrough; select mainnet.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd5YbaM0Pj1hpUteYedGYhANcxwb-_em_gZf5A16hSp-yMI3fCSX8nt7HnVWwejDw7LV18hWEZofLAmRDcxWCw714LPd6h0agIJkGg3qKYsrdthSH_2_tCZA9fTwqjsVf602qmotycFPoV9UO6wG2B0xrQ?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

Next you will see a long list of chains available to choose from. We want to bridge the token Degen with the contract address 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed which is currently live on Base to Optimism. Navigate to Base and Optimism, use the spacebar button to select both chains, then hit enter.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdA2PKEZnrzFh2H06uThcBEhE0KmPvvpVzNbdpaOKmmmscSfCZ8AlXyyxtAvQKYaqfVNvflAi1t5zb-QfCgEX3vGUBGnnMVXBmAjcm13NmIKO45moA0iP0B5TeE7LhIFK5VQa2sQq0-56vxJK8vCi1qhZO3?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

Configuring the Warp Route

The next step involves configuring the warp route for the Degen token. You have a few options to set up a warp route:

  • Synthetic: This option is used when creating a new ERC-20 token on a new chain.

  • Collateral: This option is for ERC-20 tokens that have already been deployed on a specific chain.

Since the Degen token is live on Base, select the collateral option.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcN_jrZefGdT7jRfHpU88_hrZSzPgjAh9Fj2IHrKLuHLBqr7rKJCMhJ1TvlrtUDNNa32asF1qwW7TlhTR-ivfQ0V6My6jLYS4Y9EiNsy53TYwCG8_MV2n2x2fWtHujzMLqLvMlgGjJdWmqHPw6Zjs3BDvzM?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

The Hyperlane CLI will automatically detect the mailbox address for each chain from its registry. Confirm the detected mailbox address by typing Y when prompted.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXevVeNqG3omq5JqF00JHjQfifSzvZFEDWVH07LWaI6YF-LXL5fPUHCU3tJ8cKQQf0A80-3pPZmtmwlC9EhOhO4YtkfruorHEEdVCsiw3x84eaRcrYSPlQsp0sWmu3-EVUwhi-D4peWdxwKHKSyaWNzfOHHJ?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

  • Next, you’ll be asked to enter the contract address of the token:
0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed

This is the contract address for the Degen token on Base. You can purchase some Degen on Uniswap ($5 above recommended) , then copy the contract address and paste it into the Uniswap frontend. You’ll need the Degen token to complete the Warp Route bridging.

The next step is to configure the warp route for the Degen token on Optimism.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcg-2OjuafAuBug6hTxbgXaycPDoqJrbOhCelAcdF3ZqVcnixOMgK5IOxVP92LHrEEBCB8Von7hDrEVBMqm9ycIyovHvJf6CQnY5ZF7Yu7-c5GagPPDdcdvWmLLrSZmD6LyHByEZeUCJXWjS4dE54DFjBc?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

In this scenario, choose the synthetic option since the Degen token is not live on Optimism. It’s essentially a new token being deployed and a new bridge route being configured by Hyperlane. Again, confirm the mailbox address on Optimism when prompted.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdbgyMCLskaNFPIW8ZMu-UCTxeb5TTceLnoqcbwOJV39KlJvlwbACqN4pRi2c9ro0KNtazGkz-XsHaSnB8bMzzD6FRYrnMJrPjKyxcoCwG4ZyWDFGoUnAgufuTRY6eb9nC-b2MwLFj1H2Luu2Ef2w4sYHPN?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

Our warp route configuration has been defined; the next step is to deploy the contract.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdoAh0zvqIYednW1TEolJYHSd6JllNuDBdFnXYZu_-wjiSksdmTlEmSKcsNHN-tvvb7RRHeA3vxkalMyeXuCm9auFItrkto6chOsbx5gqnLLmQDCrh0b_H6POJyeEfX19nV1WlQ50Ypm4omvwWhWK6iwGNz?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

Deploying the Warp Route

Deploying the Warp Route Once the warp route is configured, you can proceed to deploy the warp route contract by executing the following command:

hyperlane warp deploy

You’ll be asked whether you’d like to use an API key to verify the contract. For this tutorial, select “N” as verification is not required.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdvIULHmkIbVaBq23BhjoiMrrfse24fkhnh9NRlWm1E1-7mZodKfbShEvtjTXToEJ3FpWi3Q59PgIxClof48j8rueMQ46cwigimRyjNU2uqihWUaw-JCi3Js410j1R8MhbdgUNTCdBjylzcgcBPa9Eg3iA?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

The CLI will then create a Warp Route Deployment Plan and it will prompt you to confirm if it’s correct. Type Y to proceed.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeuPFqvLq-AwfdSs3kCMgi6_ZKvoxYeGigWGubNx-fmcnwEok2g35xMdAOkKhUfzKIKBHvxwP_2hTL2MDoNGdpUcjWN1-0LoNKBI8DqtdCndv0mpB0IdLNqHfTaJCK7v1ws12woAfm0XTeVuygaxLKm-SO5?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

If you get a warning in your terminal about “Deployment may fail due to insufficient balance(s)”, ensure you have at least $5 worth of ETH on both chains (Base and Optimism), then type Y to proceed.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf-YE70VJFOTl3dDgINCaImps1WcPdEokvlUMOoenmAVJwuPxuS4UDF6mdeYTAFS2_1DFugLxl_Ao0sGRs5hnBRjaeTpxNA1Zxrgf1-BrOvoacL4HUQAz86GeoQrvVb5BfKe5a1_raouWCrLZUh_PpGT9zs?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

Once the deployment is complete, you’ll see a confirmation in your terminal. The output will include your warp route configuration, which should look something like this:

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXe6swGZ5kln4r25ZHZwqStAjN8sQBXixyzj7ugvYCVI1zhEQpWVMJLU9DfzTjogbrYMVaHYleWrTpM3H76kKcg3lazYi0ek-0YhWl0zV49WzUlMHm9hNPZjWO-EWsx7gjN2RNcqOM8Aqm0VuTmvkmtTEDq1?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

The next thing you want to do is copy the warp route config output, and we are ready to bridge our Degen token to Optimism.

Bridging the Degen Token

Once the contract is deployed, you can now bridge the Degen token between the Base and Optimism chains. To do this:

  1. Go to the Hyperlane Superbridge app.

  2. Click on the Settings icon.

  3. Navigate to Warp Routes and click Customize.

  4. Paste the warp route config output you copied into the box and hit Save.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcm0_aNaJIdpf2V2VkbakDxAn0y-j7wNuLOO3CJWEuytLCoNPM97yeW_bt848LQ-crREcKgSC5RKR_sA8y3VydxTKOBI_SONU5B8Loam_5NSqt5xtCAg_jNWS9klo1dy6KX-vXNuQ6sKbQPv5mbwivagJiJ?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

5. Connect your wallet and choose the Base and Optimism chains.

6. Select the amount of Degen tokens you want to bridge, and initiate the bridging process.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXc-ybnDOXkKO_BMpKUCFDX4ls7uEz1PVTj8qB5U0ILxnBnuYLAdHk_vjnFTF-OkEGAZXSh4ScCxe9z7A1S8Q4kq_TYINq057ImdxAoymsI2F-aZWXNeEIWStEHutJvRXYyl-LorA40ZQPxQLR_1XJKglqgh?key=jnkRyCJ5vV-7zZ_XT1Rwcg align=“left”)

You can check if your bridging was successful on the Hyperlane Explorer.

Congratulations you just deployed your first Hyperlane Warp Route to bridge the Degen token from Base to Optimism.

STAY TUNED FOR PART 2 (VERY IMPORTANT)

Jadeofwallstreet

Tutorials, technical deep-dives, and thoughts on Web3 and software.

Comments

Loading comments...