Bring Your Own Provider (BYOP)

Dr. Sebastian Bürgel
HOPR
Published in
3 min readMar 8, 2023

RPCh went live in ETH Denver this February at a sold-out event! With a major announcement: BlockWallet becomes the first wallet to officially integrate RPCh. But wallet integrations aren’t the only way for you to use RPCh. You can use RPCh on any wallet across any EVM chain by running the RPCh server with Docker.

Here’s a quick look at how to use RPCh with your wallet provider.

Prerequisite: Install Docker

To run the RPCh server locally, you need to use Docker, so before continuing, you must ensure you have Docker installed on your device. You can install Docker here.

Running RPCh

Once you have Docker installed, you can run RPCh by going to https://access.rpch.net/ and following these two simple steps.

1.) First, under the Docker section, click the download button to open the popup with your unique secret token and docker command.

2.) Next, copy the ‘Run RPCh’ command and paste it into your terminal. Make sure you have Docker installed on your device.

That’s all! Now you have an RPCh server running locally and can use it with your wallet.

Using RPCh

The popup will give you a default RPC URL which you can add to your wallet to use RPCh as long as you have RPCh running.

The default URL is: http://localhost:8080/?exit-provider=https://primary.gnosis-chain.rpc.hoprtech.net

Note: if you are using a VPS, replace ‘localhost’ with your VPS IP address.

The default URL is for Gnosis chain. Simply replace the ‘exit provider’ URL with whatever RPC provider you want for the chain you want to use.

Example Use: Default (Gnosis)

Here is an example of adding this to MetaMask for the Gnosis chain with chain ID: 100. This is the default chain for the provided URL: http://localhost:8080/?exit-provider=https://primary.gnosis-chain.rpc.hoprtech.net

Example Use: Any EVM Chain

To use any other chain, change the ‘exit provider’ and the chain ID when adding a new wallet. For example, to use RPCh with the Binance Smart Chain, I would need its Chain ID: 56 and an RPC exit provider such as https://bsc-dataseed4.binance.org. You can find providers and chain information for your desired chain using chainlist.

New RPC URL (Binance Smart Chain):

http://localhost:8080/?exit-provider=https://bsc-dataseed4.binance.org

Example using new provider and chain ID (Binance Smart Chain):

Installation Demo

Here is a demo video of the installation process. For this:

  • The demo is using a VPS, so it replaces localhost with the VPS IP address. You won’t need to do this if you are running RPCh locally on your terminal.
  • The demo downloads the server using the Docker Pull command from the popup. This is an optional step that you can skip.

Visit our docs for more information.

Sebastian Bürgel,
HOPR Founder

--

--