WAX Get Balance
AI-generatedOverview
This node retrieves the token balance for a specified WAX blockchain account. It is useful for scenarios where you need to check the balance of a particular token (e.g., WAX) held by an account on the WAX blockchain. For example, it can be used in workflows that monitor user balances, trigger actions based on token holdings, or integrate WAX token data into other systems.
Use Case Examples
- Check the WAX token balance of a user's account to display in a dashboard.
- Verify if an account has sufficient tokens before processing a transaction.
- Monitor token balances for multiple accounts and trigger alerts if balances fall below a threshold.
Properties
| Name | Meaning |
|---|---|
| Account Name | The WAX blockchain account name whose token balance is to be retrieved. |
| Token Contract | The smart contract account that manages the token, typically 'eosio.token' for standard tokens. |
| Symbol | The symbol of the token to check the balance for, e.g., 'WAX'. |
| API Endpoint | The URL of the WAX blockchain API endpoint to query for the token balance. |
Output
JSON
account- The WAX account name queried.contract- The token contract account used for the query.symbol- The token symbol for which the balance was retrieved.balance- The numeric balance of the specified token held by the account.
Dependencies
- Requires access to a WAX blockchain API endpoint, typically via HTTP POST requests to retrieve token balances.
Troubleshooting
- Ensure the 'Account Name' and 'Token Contract' are valid WAX blockchain accounts; invalid names will cause errors.
- Verify the 'API Endpoint' URL is correct and accessible; network or endpoint issues will prevent balance retrieval.
- If the token symbol does not exist or the account holds no balance for it, the node returns a balance of 0 for that symbol.