curl --request POST \
--url https://xbt-mainnet.gomaestro-api.org/v0/eventmanager/triggers \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"confirmations": "5"
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"status": "active",
"event_count": "40",
"confirmations": "5"
}
}
Create a new trigger
Adds a trigger to a manager to listen for specific blockchain activity.
curl --request POST \
--url https://xbt-mainnet.gomaestro-api.org/v0/eventmanager/triggers \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"confirmations": "5"
}'
{
"data": {
"id": "<string>",
"name": "<string>",
"chain": "bitcoin",
"network": "mainnet",
"type": "transaction",
"webhook_url": "https://webhook.site/your-endpoint",
"filters": [
{
"key": "sender",
"operator": "=",
"value": "<string>"
}
],
"status": "active",
"event_count": "40",
"confirmations": "5"
}
}
Success
The response is of type object
.