Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 5.1 KB

createwebhookrequest.md

File metadata and controls

34 lines (29 loc) · 5.1 KB

CreateWebhookRequest

Example Usage

import { CreateWebhookRequest } from "@avalabs/avacloud-sdk/models/components";

let value: CreateWebhookRequest = {
  url: "https://charming-divine.org",
  chainId: "<id>",
  eventType: "address_activity",
  metadata: {
    addresses: [
      "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    ],
    eventSignatures: [
      "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64",
    ],
  },
};

Fields

Field Type Required Description
url string ✔️ N/A
chainId string ✔️ N/A
eventType components.EventType ✔️ N/A
metadata components.CreateWebhookRequestMetadata ✔️ N/A
name string N/A
description string N/A
includeInternalTxs boolean Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
includeLogs boolean Whether to include logs in the webhook payload.