Git Product home page Git Product logo

hedera-check-balance's Introduction

Hedera check account balance action

Test

Github Action to check balance of a Hedera account, optionally failing if there are insufficient hbars.

Inputs

hedera-network

The Hedera "mainnet", "testnet" or "previewnet" network in which the account exists. Defaults to "testnet" if not set or invalid.

operator-id

[Required] The account id of the operator.

operator-key

[Required] The private key of the operator. Set using Github Secret.

minimum-balance

[Required] The minimum balance in hbars for the action to succeed.

account-id

The account id being checked, defaulting to operator-id if not set.

fail-action

Fail this action if account balance is below minimum. Valid values are true or false. Defaults to true.

Outputs

account-balance

The account balance in ℏ (hbars).

Example usage

- name: Check Ħ account balance
  uses: si618/[email protected]
  with:
    operator-id: ${{ secrets.OPERATOR_ID }}
    operator-key: ${{ secrets.OPERATOR_KEY }}
    minimum-balance: 100 # 100ℏ needed to run tests

hedera-check-balance's People

Contributors

dependabot[bot] avatar si618 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.