Deploy Your Own ICTT Frontend
Set up the BuilderKit for deploying your own Interchain Token Transfer (ICTT) frontend with custom tokens and chains.
In this section, you’ll learn how to deploy your own ICTT frontend using the BuilderKit and pre-configured tokens and chains. Follow these steps to quickly set up and test your own ICTT frontends with Avalanche L1s.
Open the AvaCloudSDK Starter Kit Github Repository
Start by opening the repository on Github.
Open Avalanche Starter KitOpen the Dev Container and Navigate to the Chain Definitions
- Open the repository in a Github Codespace or Visual Studio Code.
- Navigate to the
web-apps/builderkit/chains/definitions
folder.
In this folder, you’ll find separate files for each chain configuration. For example, echo.ts
contains the definition for the Echo L1 chain:
How to Configure Your Own Blockchain
To configure your custom blockchain (e.g., myblockchain
):
- Copy the existing echo.ts file and rename it to myblockchain.ts.
- Update the fields to match your blockchain’s specific details, such as chain ID, network name, and native currency.
- Save the file in the chains/definitions folder.
Import Your Chains
- Navigate to the
web-apps/builderkit/flows/ictt
folder.
Once you're inside the ICTT folder, open the page.tsx
file to begin configuring the tokens and chains.
Add Imported Chains to Array
After importing the chains, add them into the chains array:
This array will hold the configuration of all the chains that will interact with your ICTT frontend.
Add Your Chain, and Configure Tokens
Next, configure your tokens. Here’s an example token configuration:
Implement the ICTT Component
After configuring the tokens and chains, implement the ICTT component in the page. Here’s how to pass the token and chain details to the component:
In this example:
tokens
contains the configuration.token_in
specifies the address of the token being transferred.source_chain_id
anddestination_chain_id
represent the IDs of the source and destination chains.
Run the Application
Move back to the web-apps
folder and run the following command to start the app in development mode:
You can now interact with the ICTT component.