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",
],
},
};
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. |