Chromia bridge client
This section covers how to set up Chromia bridge client to facilitate token transfers between Chromia and Ethereum Virtual Machine (EVM) networks.
The Chromia bridge client supports interaction with:
- The Economy Chain and any other chain that supports bridging. Specify the BRID and corresponding contract addresses when configuring. It can serve as more broad tool compared to Vault.
- Separately deployed bridge chain.
Alternatively, the chromia-bridge-demo can be used in place of Vault to interact with any bridge chain, including the Economy bridge chain.
For deposit-only functionality, the deposit transaction can be invoked directly via an EVM block explorer.
Configure the Chromia bridge clientSet up the Chromia bridge client for token transfers between Chromia and EVM networks. Approve ERC20 tokens, check
allowances, set blockchain RID, and configure validators using the @chromia/bridge-client library.Work with the clientManage interactions with Chromia by establishing connections, creating accounts, and initializing the client with
an EVM provider using @chromia/ft4 for session management.Example usageBridge tokens between EVM and Chromia by approving token spending, making deposits, linking accounts, and
initiating withdrawals using the @chromia/bridge-client library.