OpenElements / hedera-solo-action

A GitHub Action for setting up a Hedera Solo network
Apache License 2.0
0 stars 3 forks source link
actions hacktoberfest hiero web3

hedera-solo-action

A GitHub Action for setting up a Hedera Solo network. An overview of the usage and idea of the action can be found here.

The network that is created by the action contains one hedera consensus node that can be accessed at localhost:50211. The action creates an account on the network that contains 10,000,000 hbars. All information about the account is stored as output to the github action.

A good example on how the action is used can be found at the hedera-enterprise project action. Here the action is used to create a temporary network that is than used to execute tests against the network.

Inputs

The GitHub action takes the following inputs:

Input Required Default Description
installMirrorNode false false If set to true, the action will install a mirror node in addition to the main node. The mirror node can be accessed at localhost:8080.
installRelay false false If set to true, the action will install the JSON-RPC-Relay as part of the setup process.
hederaVersion false v0.52.2 Hedera network version to use

Outputs

The GitHub action outputs the following information:

Usage

- name: Setup Hedera Solo
  uses: OpenElements/hedera-solo-action@v0.1
  id: solo

- name: Use Hedera Solo
  run: |
    echo "Account ID: ${{ steps.solo.outputs.accountId }}"
    echo "Private Key: ${{ steps.solo.outputs.privateKey }}"
    echo "Public Key: ${{ steps.solo.outputs.publicKey }}"

Tributes

This action is based on the work of Hedera Hashgraph and Hedera Solo. Without the great help of Timo, Nathan, and Lenin this action would not exist.