Actions Reference
The Event Listener enables users to detect specific events that align with predefined criteria, known as triggers. Upon the occurrence of a triggered event, users can specify "actions"—predefined responses that tell mintBlue what steps to take. Below is the reference.
Interfaces
Insert into project
- Type:
insert_into_project
- Options:
project_id
: Insert the transaction into the specified project.
{
type: 'insert_into_project';
options: {
project_id: string;
}
}
Webhook
- Type:
webhook
- Options:
url
: The url specifies the endpoint to which the webhook will send data.
{
type: 'webhook';
options: {
url: string;
}
}
The webhook will be called using the POST method. The body will contain the following information:
If your webhook url contains rawtx=1
inside the query parameters, the webhook body will contain the full raw transaction inside the body. Otherwise, the raw transaction is omitted.
interface WebhookBody {
version: Number;
subscription: Subscription; // The subscription that triggered this webhook call
event: Event; // The event you are interested in
includeRawtx: Boolean; // True if raw tx is included in event (default false)
}