Get All Webhooks

Programatically retrieve all your Helius webhooks.

GET /webhooks

Returns all webhooks.

get
Authorizations
Query parameters
api-keystringRequired

The api key.

Responses
get
GET /v0/webhooks HTTP/1.1
Host: api.helius.xyz
Authorization: Basic username:password
Accept: */*
[
  {
    "webhookID": "text",
    "wallet": "text",
    "webhookURL": "text",
    "transactionTypes": [
      "UNKNOWN"
    ],
    "accountAddresses": [
      "text"
    ],
    "webhookType": "text",
    "txnStatus": "all",
    "authHeader": "text"
  }
]

Code 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

Was this helpful?