Connecting to Network - extrimian/documentation GitHub Wiki
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:
-
First go through the process of creating a Location, Workspace, Environment .
-
Next, follow the steps here to create your network.
-
Once your network is created we can view the details from your environment dashboard; by navigating to the environment you created the network for.
-
Clicking on the network you can now view your network details.
-
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.
-
Once you have Metamask downloaded, click on network and select Custom RPC
-
FIll in the fields, first giving the network a name.
-
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]
-
For the chain ID using Besu network is 2018. Currently, RSKEC supports only BESU network.
-
Note: You can input any chain ID number and the platform brings up the current id that matches the network.
-
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:
-
Clicking on your account profile
-
Select import account option
-
Select private key
-
On your network details: on your Prefunded account 1 make the private key visible by clicking on the toggle button.
-
Copy and paste your private key in Metamask then click on the import
-
Your account will be imported immediately
-
You can view your imported account by clicking on your account profile