Hedera Account Hash Variable

Introduction

The Hedera Account Hash Variable plugin retrieves on-chain Hedera account information based on specified account attributes. This allows you to pull details like account balance, token balance, and more into your Joget applications.

Plugin Information

This plugin supports various attributes to fetch specific Hedera account details using a prefix and an account ID. You can use these attributes to retrieve information directly within your Joget app.

Get started

Prerequisites

  • A Joget platform configured with Hedera Default Backend Configuration.
  • An existing Hedera account ID for retrieving the data.

Where to get the plugin

Download the Hedera Token Management Tool from the JogetOSS GitHub repository.

How to install

  1. Click Download on this plugin screen (It will be a .jar file).
  2. Go to your Joget localhost or server. In the Joget Console, go to Admin Bar > Systems Settings > Manage Plugins and click the Upload Plugins button.
  3. Under Upload Plugin, select the plugin .jar file you downloaded and click Upload.
  4. Depending on the plugin type, you can now view your new plugin in your form, List, or UI Builder.
  5. Remember to uninstall the old plugin before uploading a new version.
  6. The Joget Knowledge Base has more information on managing and developing plugins.

Configure hash variable properties

Here are the key properties and attributes you can configure within the plugin:

  • Prefix: hedera
  • Description: To retrieve account details based on the Account ID.
  • Attributes
    • #hedera.account[ACCOUNT_ID].allTokens#
    • #hedera.account[ACCOUNT_ID].tokenBalance[TOKEN_ID]# //Only if VALUE is tokenBalance
    • #hedera.account[ACCOUNT_ID].hbarBalance#
    • #hedera.account[ACCOUNT_ID].accountMemo#
    • #hedera.account[ACCOUNT_ID].isAccountDeleted#
    • #hedera.account[ACCOUNT_ID].receiverSignatureRequired#
    • #hedera.account[ACCOUNT_ID].evmAddress#
    • #hedera.account[ACCOUNT_ID].maxAutoTokenAssociations#
    • #hedera.account[ACCOUNT_ID].alias#
    • #hedera.account[ACCOUNT_ID].autoRenewPeriod#
    • #hedera.account[ACCOUNT_ID].createdTimestamp#
    • #hedera.account[ACCOUNT_ID].declineReward#
    • #hedera.account[ACCOUNT_ID].ethereumNonce#
    • #hedera.account[ACCOUNT_ID].expiryTimestamp#
    • #hedera.account[ACCOUNT_ID].publicKeyType#
    • #hedera.account[ACCOUNT_ID].publicKey#
    • #hedera.account[ACCOUNT_ID].allowances#
    • #hedera.account[ACCOUNT_ID].pendingReward#
    • #hedera.account[ACCOUNT_ID].rewards#
    • #hedera.account[ACCOUNT_ID].stakedAccountID#
    • #hedera.account[ACCOUNT_ID].stakedNodeID#
    • #hedera.account[ACCOUNT_ID].stakePeriodStart#
      For more details, see Hedera Account Properties.
  • Scope of Use: Anywhere within a Joget app that has Hedera Default Backend Configuration configured.
  • Sample Attributes: 

    To display the account's HBAR Balance:

    • #hedera.account[0.0.5712154].hbarBalance#

    To display the account's HBAR Balance with nested hash:

    • #hedera.account[{form.hedera_account_user.id}].hbarBalance#

    To display a specific token Balance:

    • #hedera.account[0.0.5712154].tokenBalance[0.0.5713458]# //Existing Token ID

Download plugin

Created by Julieth Last modified by Aadrian on Nov 19, 2024