Smart Contract Webhook
**Note: A maximum of 3 webhooks is allowed per project version.
List Smart Contract Webhooks
List Smart Contract Webhooks
GET
API_URL/api/contract/projects/{projectSlug}/versions/{versionSlug}/webhooks
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
The returned values will be in the format of
Sample Result
{
"result": [
{
"id": 1,
"url": "http://webhook/api/webhook-testing",
"status": "active",
"capture_anonymous": 0
},
...
],
"pagination": {
"current_page": 1,
"first_page_url": "http://localhost/api/contract/projects/test-project/versions/1-v101/webhooks?page=1",
"last_page": 1,
"last_page_url": "http://localhost/api/contract/projects/test-project/versions/1-v101/webhooks?page=1",
"next_page_url": null,
"per_page": 10,
"prev_page_url": null,
"total": 3
},
"message": "Success"
}
Get Smart Contract Webhook Details
Get Smart Contract Webhook Details
GET
API_URL/api/contract/projects/{projectSlug}/versions/{versionSlug}/webhooks/{webhookId}
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
The returned values will be in the format of
Sample Result
{
"message": "Success",
"result": {
"id": 1,
"url": "http://127.0.0.1:8001/api/webhook-testing",
"status": "active",
"subscribed_events": [
{
"event": "0x7ca2ca9527391044455246730762df008a6b47bbdb5d37a890ef78394535c040",
"contract_address": "0x22E726F2d2049BD6b7af65115590C157450F738c"
}
],
"capture_anonymous": 0
}
}