Actions9
- Account Actions
- Token Actions
- Asset Actions
Overview
This node enables interaction with the WAX blockchain, specifically allowing users to perform operations related to WAX accounts. The "Buy RAM" operation lets users purchase RAM on the WAX blockchain by specifying an account and the amount of WAX tokens to spend. This is useful in scenarios where a user needs to allocate more RAM resources to their WAX account for deploying smart contracts or handling larger transactions.
Practical examples include:
- A developer automating resource management for their WAX-based dApp by programmatically buying RAM.
- Users managing multiple WAX accounts and ensuring they have sufficient RAM for operations without manual intervention.
Properties
| Name | Meaning |
|---|---|
| API Endpoint | The URL of the WAX blockchain API endpoint to connect to (default: https://wax.greymass.com). |
| Account Name | The WAX account name that will buy RAM. |
| Amount (WAX) | The amount of WAX tokens to spend on purchasing RAM. |
Output
The node outputs JSON data representing the result of the "Buy RAM" operation on the WAX blockchain. This typically includes transaction details such as transaction ID, status, and any relevant blockchain response confirming the RAM purchase.
If the operation fails and "Continue On Fail" is enabled, the output JSON will contain an error field with the error message.
No binary data output is involved.
Dependencies
- Requires access to a WAX blockchain API endpoint (default is
https://wax.greymass.com). - May require an API key or private key credential for authentication to authorize transactions on behalf of the specified account.
- The node depends on bundled resource code (
./resources) which implements the actual blockchain interaction logic.
Troubleshooting
Common issues:
- Invalid or missing account name can cause transaction failures.
- Insufficient WAX balance in the account to cover the RAM purchase.
- Network connectivity issues with the specified API endpoint.
- Authentication errors if required credentials are not provided or invalid.
Error messages:
- Errors returned from the blockchain API will be surfaced in the output JSON under the
errorfield if "Continue On Fail" is enabled. - Common error messages might include insufficient funds, invalid account, or endpoint unreachable.
- Errors returned from the blockchain API will be surfaced in the output JSON under the
Resolution tips:
- Verify the account name is correct and exists on the WAX blockchain.
- Ensure the account has enough WAX tokens to cover the RAM purchase plus any transaction fees.
- Confirm the API endpoint URL is reachable and correct.
- Provide valid authentication credentials if required.