Usage
To trigger a test webhook event, use the following command:Parameters
<event_type>: The type of webhook event you want to trigger. This is a required parameter.--override <json_string>: (Optional) A JSON string to override specific fields in the event payload.
Supported Event Types
The Cobo CLI supports triggering the following webhook event types:wallets.transaction.createdwallets.transaction.updatedwallets.transaction.failedwallets.transaction.succeededwallets.mpc.tss_request.createdwallets.mpc.tss_request.updatedwallets.mpc.tss_request.failedwallets.mpc.tss_request.succeeded
To get the most up-to-date list of supported event types, you can use the
cobo webhook events command.Examples
Trigger a simple event
To trigger awallets.transaction.created event with default data:
Trigger an event with custom data
To trigger awallets.transaction.updated event with custom data:
wallets.transaction.updated event with the specified chain_id and amount values, while using default values for other fields.
Response
After triggering an event, the CLI will display the event details, including:- Event ID
- Event Type
- Timestamp
- Event Data
Best Practices
- Test all event types: Trigger events for all the webhook types your application is subscribed to, ensuring your system can handle each type correctly.
- Use realistic data: When overriding event data, try to use realistic values that match your production scenarios.
- Test error handling: Trigger events with edge case data to ensure your webhook consumer can handle unexpected scenarios gracefully.
- Verify webhook delivery: After triggering an event, check your webhook endpoint logs to confirm that the event was received and processed correctly.
