Following the instructions below you will install and run the RSK node in Azure. By default, the node connects to MainNet. If you want to change the network read this section. If you want to change some configuration, please refer to our RSK node configuration section. Also you can enable RPC calls to interact with the node (by default it’s not enabled).
sudo service rsk stop
cd /etc/rsk
sudo vi <NETWORK>.conf
Restart RSK service:
sudo service rsk start
That’s all! You have your own node running on an Azure Service.
:exclamation: Important: this is a basic configuration that enables any call. Any other options can be added. At least you must maintain the destination to 4444.
You should get something like this:
Edit configuration file.
sudo service rsk stop
cd /etc/rsk
sudo vi <NETWORK>.conf
Replace <NETWORK>
with the network you are using. If you have not switched, by default it’s MainNet.
Press i
to enable insert mode. Edit the following values:
rpc.address = "0.0.0.0"
rpc.host = ["AZURE_SERVICE_VM_IP"]
. You can also add localhost
and/or your node’s DNS.
Then press ESC
to exit insertion and :wq
to write changes and quit vi
. Restart RSK service.
sudo service rsk start
If needed, change cors
value.
curl -s -X POST -H "Content-Type:application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber", "params":[],"id":666}' http://<YOUR_IP>:4444
Should return something like:
{"jsonrpc":"2.0","id":666,"result":"0x70d03"}
In a terminal run:
ssh user@server
To get user and server navigate to RSK virtual machine and go to the Overview window. Open Connect option in the top left corner.
Copy and paste the text in Ḷogin using VM local account in the console