DELETE
/
v1
/
webhooks
/
{id}
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";

const avaCloudSDK = new AvaCloudSDK({
  serverURL: "https://api.example.com",
  chainId: "43114",
  network: "mainnet",
});

async function run() {
  const result = await avaCloudSDK.data.webhooks.deactivateWebhook({
    id: "f33de69c-d13b-4691-908f-870d6e2e6b04",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "id": "<string>",
  "eventType": "address_activity",
  "metadata": {
    "addresses": [
      "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
    ],
    "eventSignatures": [
      "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"
    ]
  },
  "includeInternalTxs": true,
  "includeLogs": true,
  "url": "<string>",
  "chainId": "<string>",
  "status": "active",
  "createdAt": 123,
  "name": "<string>",
  "description": "<string>"
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Path Parameters

id
string
required

The webhook identifier.

Response

200
application/json
Successful response
id
string
required
eventType
enum<string>
required
Available options:
address_activity
metadata
object
required
url
string
required
chainId
string
required
status
enum<string>
required
Available options:
active,
inactive
createdAt
number
required
name
string
required
description
string
required
includeInternalTxs
boolean

Whether to include traces in the webhook payload.

includeLogs
boolean

Whether to include logs in the webhook payload.