# Register the Chromia bridge on EVM · Chromia Docs (concept)

> To enable transfers between networks, we need to register the Chromia bridge component on the EVM bridge contract so that the EVM side recognizes it.

Source: https://docs.chromia.com/ecosystem/bridge/deploy-bridge/register-bridge/

# Register the Chromia bridge on EVM

On this page

* [Prerequisites](#prerequisites)
* [Set the Bridge Chain RID on the EVM bridge contract](#set-the-bridge-chain-rid-on-the-evm-bridge-contract)

To enable transfers between networks, we need to register the **Chromia bridge component** on the EVM bridge contract so
that the EVM side recognizes it.

## Prerequisites

Before proceeding, ensure you have the following:

* **[Deployment or leasing of the Chromia bridge component](https://docs.chromia.com/ecosystem/bridge/deploy-bridge/deploy-bridge-chains/)** completed.
* **[Chromia CLI](https://docs.chromia.com/get-started/installation/)**
* **[Node.js](https://nodejs.org/)**
* **[MetaMask](https://metamask.io/)** or a compatible wallet.
* **[Postchain EIF contracts repository](https://gitlab.com/chromaway/core/postchain-eif.git)**
* **The `<BRIDGE_DEMO_BRID>` for the Chromia bridge component.**

  + If you **[deployed](https://docs.chromia.com/ecosystem/bridge/deploy-bridge/deploy-bridge-chains/)** the bridge, this is the BRID assigned during deployment.
  + If you **[leased](https://docs.chromia.com/ecosystem/bridge/bridge-lease/)** a bridge, this should be provided to you.

## Set the Bridge Chain RID on the EVM bridge contract

Now that we have the Bridge Chain, we need to configure the EVM bridge contract to recognize this blockchain.

First, ensure you are inside the `postchain-eif-contracts` directory:

Terminal

```
cd postchain-eif/postchain-eif-contracts
```

Next, run the following command to link the Bridge Chain to the bridge contract:

Terminal

```
npx hardhat setBlockchainRid:bridge --network bsc_testnet --address 0x<YOUR_BRIDGE_EVM_ADDRESS> --blockchain-rid 0x<BRIDGE_DEMO_BRID>
```

Run the following command to link the Bridge Chain to the bridge contract (include
`--managed-validator 0x<YOUR_BRIDGE_VALIDATOR_ADDRESS>` if using a managed validator):

Terminal

```
npx hardhat setBlockchainRid:bridge --network bsc_testnet --address 0x<YOUR_BRIDGE_EVM_ADDRESS> --blockchain-rid 0x<BRIDGE_DEMO_BRID> --managed-validator 0x<YOUR_BRIDGE_VALIDATOR_ADDRESS>
```

info

Remember to add the `0x` prefix when entering `<BRIDGE_DEMO_BRID>` to ensure the EVM contract accepts it.

Terminal

```
--blockchain-rid 0x....................
```

This command updates the **EVM bridge contract** so it recognizes `<BRIDGE_DEMO_BRID>`.

[View this page on docs.chromia.com](https://docs.chromia.com/ecosystem/bridge/deploy-bridge/register-bridge/)Content mirrored from the live docs
