Returns a webhook config given a webhook ID
const getWebhook = async () => { try { const response = await fetch( "https://api.helius.xyz/v0/webhooks/<webhook-id>?api-key=<PASTE YOUR API KEY HERE>", { method: 'GET', headers: { 'Content-Type': 'application/json', } } ); const data = await response.json(); console.log({ data }); } catch (e) { console.error("error", e); } }; getWebhook();
Last updated 9 days ago
Query a webhook by its ID.
The webhook ID.
Returns details about the given webhook ID.
const response = await fetch('https://api.helius.xyz/v0/webhooks/{webhookID}?api-key=text', { method: 'GET', headers: {}, }); const data = await response.json();
{ "webhookID": "text", "wallet": "text", "webhookURL": "text", "transactionTypes": [ "UNKNOWN" ], "accountAddresses": [ "text" ], "webhookType": "text", "authHeader": "text" }