From 440e38c8b56df5410bd640b437aeaac75f658cb0 Mon Sep 17 00:00:00 2001 From: Howard Xie Date: Tue, 7 Jan 2025 17:45:50 -0800 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3514725..8609644 100644 --- a/README.md +++ b/README.md @@ -247,10 +247,12 @@ from cdp.client.models.webhook import WebhookEventFilter wh1 = Webhook.create( notification_uri="https://your-app.com/callback", event_type=WebhookEventType.ERC20_TRANSFER, - event_filters=[WebhookEventFilter(from_address="0x71d4d7d5e9ce0f41e6a68bd3a9b43aa597dc0eb0")] + event_filters=[WebhookEventFilter(from_address="0x71d4d7d5e9ce0f41e6a68bd3a9b43aa597dc0eb0")], + network_id="base-mainnet" ) print(wh1) ``` +In the above example, parameter `network_id` is optional, if not provided, the default network is `base-sepolia`. Today we support Base mainnet and Base Sepolia networks. ### Creating a Webhook On A Wallet A webhook can be attached to an existing wallet to monitor events that occur on the wallet, i.e. all addresses associated with this wallet. A list of supported blockchain events can be found [here](https://docs.cdp.coinbase.com/get-started/docs/webhooks/event-types).