Actions9
- Account Actions
- Token Actions
- Asset Actions
Overview
The node interacts with the WAX blockchain, specifically allowing users to stake CPU resources for a given WAX account. Staking CPU is essential in the WAX ecosystem as it allocates processing power to an account, enabling it to perform transactions and execute smart contracts efficiently. This node is beneficial for developers or users who want to programmatically manage their WAX account resources, automate staking operations, or integrate WAX blockchain interactions into workflows.
A practical example includes automatically staking a specified amount of WAX tokens to increase CPU bandwidth before executing a batch of transactions, ensuring smooth operation without manual intervention.
Properties
| Name | Meaning |
|---|---|
| API Endpoint | The URL of the WAX blockchain API endpoint to which requests will be sent. |
| Account Name | The WAX account name for which CPU resources will be staked. |
| Amount (WAX) | The quantity of WAX tokens to stake for CPU resources. |
| Transfer Stake to New Account | Boolean flag indicating whether the staked tokens' ownership should be transferred to another account. |
Output
The node outputs JSON data representing the result of the CPU staking operation on the WAX blockchain. This typically includes transaction details such as transaction ID, status, and any relevant blockchain response confirming the staking action.
No binary data output is produced by this node.
Dependencies
- Requires access to a WAX blockchain API endpoint (default:
https://wax.greymass.com). - Needs an API key or private key credential for authentication to authorize staking transactions.
- Proper network connectivity to the specified WAX API endpoint.
- n8n environment must have the corresponding credential configured to allow signing and sending transactions.
Troubleshooting
Common Issues:
- Incorrect or missing account name can cause transaction failures.
- Insufficient WAX token balance to cover the staking amount.
- Network issues or incorrect API endpoint URL leading to connection errors.
- Missing or invalid API authentication credentials causing authorization errors.
Error Messages:
"error": "Insufficient funds": Ensure the account has enough WAX tokens to stake."error": "Invalid account name": Verify the account name is correct and exists on the WAX blockchain."error": "Authentication failed": Check that the API key or private key credential is properly configured."error": "Network request failed": Confirm the API endpoint URL is reachable and correct.
Resolving these usually involves verifying input parameters, checking credentials, and ensuring network connectivity.