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 smart contract interactions efficiently. This node is beneficial for users who want to programmatically manage their WAX account resources, such as developers automating resource allocation or dApps managing user accounts.
A practical example use case is staking a specified amount of WAX tokens to increase the CPU bandwidth of an account, optionally transferring the staked tokens' ownership to another account.
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 for which CPU resources will be staked. |
| Amount (WAX) | The amount 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 a new account. |
Output
The node outputs JSON data representing the result of the staking operation on the WAX blockchain. This typically includes transaction details such as transaction ID, status, and any relevant blockchain response confirming the CPU stake action.
No binary data output is produced by this node.
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 configured in n8n to authorize staking operations.
- The node depends on bundled internal resources and methods to execute blockchain operations.
Troubleshooting
Common Issues:
- Incorrect or unreachable API endpoint URL may cause connection failures.
- Insufficient WAX token balance in the account to cover the staking amount.
- Invalid or missing account name can lead to errors from the blockchain.
- Lack of proper authorization or missing credentials may prevent successful staking.
Error Messages:
- Errors related to network connectivity or timeouts suggest checking the API endpoint and internet connection.
- Blockchain error messages about insufficient funds indicate the need to verify the account's WAX balance.
- Authorization errors imply that the required API key or private key credential is not properly set up.
Resolving these issues generally involves verifying input properties, ensuring valid credentials are configured, and confirming the account has enough tokens.