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.
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 |
The GitHub action outputs the following information:
accountId
: The account ID of the account created.privateKey
: The private key of the account created.publicKey
: The public key of the account created.
- name: Setup Hedera Solo
uses: OpenElements/[email protected]
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 }}"
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.