trnch_alerts_subscribe · Subscribe a webhook to Trnch alerts for a wallet
may change things: you confirm before it runsGet a signed webhook POST when a token a wallet holds is newly flagged by Trnch. Give wallet (any address) and webhookUrl (https, a public domain name, port 443; IPs, localhost and private or internal names are refused). Each alert carries the token, the Trnch verdict { status, category, rugged, dumped }, canSell and the trnch_sell call to make. Checked every 5 minutes, one POST per token and subscription; tokens the wallet already holds that Trnch keeps out are sent once at the start (initial: true); a failed delivery is retried on the next run. Returns the subscription with a secret shown once: it signs every POST in X-TRNCH-Signature (t=<seconds>,v1=<HMAC-SHA256 of t.body>). 3 subscriptions per key, 5 active per wallet, 20 per destination host (409); the same wallet again replaces its URL; 10 failed deliveries in a row disable it. Requires an API key (created by wallet signature), sent as Authorization: Bearer <key>.
Input schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Wallet address to watch on Robinhood Chain (chainId 4663)."
},
"webhookUrl": {
"type": "string",
"maxLength": 300,
"description": "https URL on a public domain name, port 443."
}
},
"required": [
"wallet",
"webhookUrl"
],
"additionalProperties": false
}