Mobula provides Webhook support for retrieving any raw events and curated events (i.e. Swaps, Liquidity).
{ "name": "MyFirstWebhook", "chainIds": ["evm:1", "evm:56"], "events": ["trace", "log", "transaction", "block", "swap", "transfer", "pool"], "apiKey": "xxxxxxxxxx", "url": "https://webhook.com/xxxxxxxxxxx", };
await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: { "name": "FirstWebhook", "chainIds": ["evm:1"], "events": ["trace"], "apiKey": "xxxxx", "filters": { "eq": ["action.input", "0xd55ec697"] }, "url": "https://webhook.com/xxxxx" } });
await fetch(url + `/${webhook_id}`, { method: 'DELETE', headers: { 'Content-Type': 'application/json', }, });
{ "message": "Webhook deleted successfully" }