Connecting to Network - extrimian/documentation GitHub Wiki

  1. How to setup connection to a network

  2. End to End Example

  3. How to set connection through private key

With the RSKEC platform, you can connect to:

  • Private or Individuals or Permissioned networks

  • Public or Shared or Permissionless networks

  • Consortium networks

How to setup connection to a network

To set up a connection to a network with the RSKEC platform you need to:

  1. First go through the process of creating a Location, Workspace, Environment .

  2. Next, follow the steps here to create your network.

  3. Once your network is created we can view the details from your environment dashboard; by navigating to the environment you created the network for.

  4. Clicking on the network you can now view your network details.

  5. From your network details you can view the information you need to make a connection; endpoint, authentication and value.

End to end example

Here is a workflow example on how to test your connection with Metamask.

  1. Once you have Metamask downloaded, click on network and select Custom RPC

  2. FIll in the fields, first giving the network a name.

  3. For your RPC URL: copy the endpoint, the authentication and the value which are the URL parameters from your Network details. it should be look like this:

    [endpoint]?apikey=[value]

  4. For the chain ID using Besu network is 2018. Currently, RSKEC supports only BESU network.

  5. Note: You can input any chain ID number and the platform brings up the current id that matches the network.

  6. Click on save.

How to set connection through private key

Some platforms have the option to import an account which you can do via a private key or a JSON file.

Currently, RSKEC supports using a private key to import your account and set up a connection to a network.

Using Metamask for instance you can import your account by:

  1. Clicking on your account profile

  2. Select import account option

  3. Select private key

  4. On your network details: on your Prefunded account 1 make the private key visible by clicking on the toggle button.

  5. Copy and paste your private key in Metamask then click on the import

  6. Your account will be imported immediately

  7. You can view your imported account by clicking on your account profile