You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

To Hedera hash variable enables user to retrieve Hedera account information based on attributes selected.

NameDescription
Prefixhedera
Description

To retrieve account details based on the Account ID.

Attributes
  • #hedera.account[ACCOUNT_ID].VALUE#
  • #hedera.account[ACCOUNT_ID].tokenBalance[TOKEN_ID]# //Only if VALUE is tokenBalance

 More attributes can be retrieved based on Hedera's Accounts REST API.

Scope of Use
  • Within the Hedera Ledger Pack app.
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
  • No labels