watch_contract
Monitors a specified contract for 30 days and sends a signed webhook event when its code, proxy, owner, or pause status changes.
Instructions
Watch one contract for 30 days and get told when it changes. About once an hour verify402 re-reads its code, its proxy implementation (and that code), who can upgrade it, owner() and paused(); on any change it POSTs one signed JSON event (type contract_changed, old and new value per field) to YOUR public https webhookUrl. Use it for a contract your agent depends on: a token, a vault, a router, a bridge. Detection after the fact, not prevention; role grants, timelock queues and multisig changes are not watched. Costs $0.50 per watch (30 days). The default per-payment cap is $0.25, so set MAX_PAYMENT_USD=0.50 to use it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chainId": "<chainId>",
"address": "<address>",
"webhookUrl": "<webhookUrl>"
},
"name": "watch_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional name echoed back in events | |
| address | Yes | The contract to watch (0x address) | |
| chainId | Yes | REQUIRED. 1 Ethereum, 42161 Arbitrum, 8453 Base, 10 OP Mainnet, 56 BNB Chain, 137 Polygon, 43114 Avalanche. | |
| webhookUrl | Yes | Your public https URL; change events are POSTed here, signed with the key at /.well-known/verify402-signing-key |