Github Action to check balance of a Hedera account, optionally failing if there are insufficient hbars.
The Hedera "mainnet"
, "testnet"
or "previewnet"
network in which the account exists. Defaults to "testnet"
if not set or invalid.
[Required] The account id of the operator.
[Required] The private key of the operator. Set using Github Secret.
[Required] The minimum balance in hbars for the action to succeed.
The account id being checked, defaulting to operator-id
if not set.
Fail this action if account balance is below minimum. Valid values are true
or false
. Defaults to true
.
The account balance in ℏ (hbars).
- name: Check Ħ account balance
uses: si618/hedera-check-balance@v1.3
with:
operator-id: ${{ secrets.OPERATOR_ID }}
operator-key: ${{ secrets.OPERATOR_KEY }}
minimum-balance: 100 # 100ℏ needed to run tests