You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[BNB Chain Copytrading Bot with Quicknode Webhooks](./webhooks/copytrading-bot-bnb) - *A copytrading bot for memecoins launched on four.meme platform on BNB Chain using Quicknode Webhooks.*
204
+
-[BNB Chain Copytrading Bot with Quicknode Streams](./webhooks/copytrading-bot-bnb) - *A copytrading bot for memecoins launched on four.meme platform on BNB Chain using Quicknode Streams.*
Copy file name to clipboardExpand all lines: webhooks/copytrading-bot-bnb/README.md
+25-23Lines changed: 25 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
-
# BNB Chain Copytrading Bot with Quicknode Webhooks
1
+
# BNB Chain Copytrading Bot with Quicknode Streams
2
2
3
-
An automated copytrading bot that monitors successful traders on the four.meme platform (BNB Chain's memecoin launchpad) and executes proportional trades in real-time using Quicknode Webhooks.
3
+
An automated copytrading bot that monitors successful traders on the four.meme platform (BNB Chain's memecoin launchpad) and executes proportional trades in real-time using Quicknode Streams.
4
4
5
5
## Overview
6
6
7
7
This bot demonstrates how to build a copytrading system by:
8
8
9
9
- Monitoring specific wallet addresses for token purchases on BNB Chain
10
-
- Receiving instant notifications via Quicknode Webhooks
10
+
- Receiving instant notifications via Quicknode Streams
11
11
- Automatically executing proportional copy trades with configurable parameters
12
12
- Implementing safety features like slippage protection and balance reserves
13
13
14
-
> Read the complete guide: [Building a Copytrading Bot on BNB Chain with Quicknode Webhooks](https://www.quicknode.com/guides/quicknode-products/webhooks/copytrading-bot-with-webhooks)
14
+
> Read the complete guide: [Building a Copytrading Bot on BNB Chain with Quicknode Streams](https://www.quicknode.com/guides/quicknode-products/streams/copytrading-bot)
15
15
16
16
## Features
17
17
@@ -46,17 +46,19 @@ npm --version
46
46
- Select **"BNB Smart Chain"** → **"Mainnet"**
47
47
- Choose your desired plan
48
48
- Click **"Create Endpoint"**
49
-
- Copy your **HTTP Provider URL** (e.g., `https://example.bnb.quiknode.pro/abc123/`)
49
+
- Copy your **HTTP Provider URL** (e.g., `https://example.bsc.quiknode.pro/abc123/`)
50
50
51
-
3.**Set Up Webhook**
52
-
- Navigate to [Webhooks Dashboard](https://dashboard.quicknode.com/webhooks)
53
-
- Click **"Create Webhook"**
51
+
3.**Set Up Stream**
52
+
- Navigate to [Streams Dashboard](https://dashboard.quicknode.com/streams)
53
+
- Click **"New Stream"**
54
54
- Select **"BNB Smart Chain"** → **"Mainnet"**
55
-
- Choose **"Write a custom filter"**
55
+
- Select **Block with Receipts** as the dataset
56
+
- Click **Customize your payload** to apply a filter and choose the **Write your own filter** option
56
57
- Copy the filter code from `filter.js` in this repository
57
58
- Update `TARGET_WALLET` in the filter to the address you want to monitor (e.g., `0x4262F7B70b81538258EB2C5ECAD3947Ba4e0C8b0`)
58
59
- Test the filter with a block number you want to monitor (e.g., `65392331`)
59
-
- Save the **Security Token** shown in the webhook settings
60
+
- Select **Webhook** as the destination type
61
+
- Save the **Security Token** shown in the settings
60
62
61
63
**Note:** Setting destination URL will be done after setting up your public URL in step 4. So, leave it here for now. We will come back to it later.
62
64
@@ -98,7 +100,7 @@ Edit `.env` with your values:
98
100
99
101
```bash
100
102
# Quicknode Configuration
101
-
QUICKNODE_SECURITY_TOKEN=your_security_token_from_webhook_dashboard# 👈 UPDATE HERE
103
+
QUICKNODE_SECURITY_TOKEN=your_security_token_from_streams_dashboard# 👈 UPDATE HERE
102
104
BNB_RPC_URL=https://your-quicknode-bnb-endpoint.quiknode.pro/abc123/ # 👈 UPDATE HERE
103
105
104
106
# Wallet Configuration (⚠️ KEEP THIS SECURE)
@@ -161,13 +163,13 @@ Copy the **HTTPS URL** from ngrok output:
0 commit comments