Get All Webhooks

Programatically retrieve all your Helius webhooks.

Due to response size limitations, we will truncate addresses return to 100 per config.

To get all addresses, use our Get Webhook By ID endpoint.

GET /webhooks

Example

const getWebhooks = async () => {
    try {
      const response = await fetch(
        "https://api.helius.xyz/v0/webhooks?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);
    }
  };
getWebhooks();

Last updated