Actions27
- Contract Event Actions
- Contract Method Actions
- Prompt Actions
- Transaction Actions
- Wallet Actions
- X402 Request Actions
- Chain Actions
Contract Event → Update
AI-generatedOverview
This node operation updates an existing contract event definition on an EVM blockchain using the 1Shot API. It allows users to modify properties such as the event's name and description. This is useful for maintaining or correcting event definitions in smart contracts without redeploying the entire contract.
Use Case Examples
- Updating the name of a contract event to better reflect its purpose.
- Changing the description of a contract event to provide clearer documentation for developers.
Properties
| Name | Meaning |
|---|---|
| Contract Event Name or ID | The identifier or name of the contract event to update, chosen from a list or specified via expression. |
| Name | The new name to assign to the contract event. |
| Description | The new description to assign to the contract event. |
Output
JSON
json- The updated contract event object returned from the API.
Dependencies
- Requires an OAuth2 API credential for authentication with the 1Shot API.
Troubleshooting
- Ensure the Contract Event ID is valid and exists; otherwise, the update will fail.
- Check that the OAuth2 credentials are correctly configured and have the necessary permissions.
- If the API returns an error, verify the input parameters for correctness and completeness.