Run a Local Node in Gitpod
Last updated
Was this helpful?
Last updated
Was this helpful?
The local network comprises the consensus node, mirror node, , and other Hedera services and now be set up without Docker and draining your computer’s resources by using Gitpod. Gitpod provides Cloud Development Environments (CDEs) and allows developers to work from any device without the need to maintain static and brittle local development environments. By the end of this tutorial, you will have your Hedera local node running on Gitpod.
Signed into your GitHub account in your browser.
a Gitpod account with your GitHub account.
If this is your first time using Gitpod, please read the guide.
Install the browser extension: .
The Mirror Node Web Explorer requires to be installed, as has limitations related to communicating with local ports, e.g. http://127.0.0.1:5551/
.
Enable public_repo
permission for GitHub provider on .
The Gitpod browser extension modifies the Github UI to add this button. This will spin up a new Gitpod workspace with your choice of CDE which will run the Hedera Local Node in your cloud environment.
Mirror Node REST API
The following command queries the Mirror Node for a list of accounts on your Hedera network.
JSON RPC Relay
The following command queries the RPC Relay for the latest block on your Hedera network.
Mirror Node Explorer (Hashscan)
Note: Gitpod usage is billed by the hour on paid plans, and hours are limited on the free plans. Therefore, once completed, remember to stop the Gitpod workspace.
Congrats on successfully setting up your Gitpod workspace and running a Hedera Local Node!
The hedera-local-node
project repository already has a Gitpod configuration file (), which makes it easy to run it within a workspace on Gitpod. Open the . Click on the Gitpod Open
button.
To confirm everything is running smoothly, run the curl
commands below to query the mirror node for a list of accounts, query the JSON-RPC relay for the latest block, and open the mirror node explorer (HashScan) using the local endpoint ().
See the for a full list of available APIs.
See the in hedera-json-rpc-relay
for a full list of available RPCs.
Visit the local mirror node explorer endpoint () in your web browser. Ensure that LOCALNET
is selected, as this will show you the Hedera network running within your Gitpod, and not one of the public nodes.
➡
➡