Actions9
- Account Actions
- Token Actions
- Asset Actions
Overview
The node enables interaction with the WAX blockchain, specifically allowing users to perform operations related to WAX accounts. The "Buy RAM" operation lets a user purchase RAM on the WAX blockchain for a specified account by spending a certain amount of WAX tokens. This is useful in scenarios where an account needs additional RAM resources to execute transactions or deploy smart contracts.
Practical examples include:
- Automatically provisioning RAM for new accounts.
- Managing resource allocation for decentralized applications running on WAX.
- Scaling account capabilities by increasing RAM as needed.
Properties
| Name | Meaning |
|---|---|
| API Endpoint | The URL of the WAX blockchain API endpoint to connect to (e.g., https://wax.greymass.com). |
| Account Name | The WAX blockchain account name for which RAM will be purchased. |
| Amount (WAX) | The amount of WAX tokens to spend on buying 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 will contain an error message describing the failure.
No binary data output is involved.
Dependencies
- Requires access to a WAX blockchain API endpoint (configurable via the "API Endpoint" property).
- May require an API authentication token or private key credential for signing transactions (configured separately in n8n credentials).
- Network connectivity to the specified WAX API endpoint.
Troubleshooting
Common issues:
- Invalid or unreachable API endpoint URL.
- Insufficient WAX balance in the specified account to cover the RAM purchase.
- Incorrect account name format or non-existent account.
- Missing or invalid API authentication credentials if required.
Error messages:
- Errors returned from the blockchain API will be propagated, e.g., "Insufficient funds", "Account not found".
- Network errors if the API endpoint is unreachable.
Resolutions:
- Verify the API endpoint URL and network connectivity.
- Ensure the account has enough WAX tokens.
- Confirm the account name is correct and exists on the WAX blockchain.
- Provide valid API credentials if necessary.
- Enable "Continue On Fail" to handle errors gracefully within workflows.