Chainhook Integration
What you'll learn
Quickstart
1
{
"chain": "stacks",
"uuid": "increment-hook",
"name": "Increment Counter Hook",
"version": 1,
"networks": {
"devnet": {
"if_this": {
"scope": "contract_call",
"contract_identifier": "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.counter",
"method": "increment"
},
"then_that": {
"http_post": {
"url": "http://localhost:3000/api/increment",
"authorization_header": "Bearer my-secret"
}
}
}
}
}2
clarinet devnet startINFO Feb 5 15:20:07.233382 2 chainhooks registered3
INFO Feb 5 15:21:07.233382 1 hooks triggeredCommon patterns
Contract deployment hook
STX transfer monitoring
Last updated
Was this helpful?