Compare commits

...

7 Commits

Author SHA1 Message Date
KS Jannette
35107c0a9d Add notification platform setup guides to README
Some checks are pending
check / check (push) Waiting to run
Made-with: Cursor
2026-03-01 10:25:56 -05:00
S Jannette
9935817fa8 Merge pull request #9 from kjannette/setupTelegramonfig
Setup telegramonfig
2026-03-01 09:49:16 -05:00
KS Jannette
8d5716bdb7 Add guide for setup of Telegram
Some checks are pending
check / check (push) Waiting to run
2026-03-01 09:48:52 -05:00
KS Jannette
aafe96d9a1 Finish config 2026-03-01 09:40:54 -05:00
S Jannette
93168209b5 Merge pull request #8 from kjannette/audit1
Audit1
2026-03-01 07:55:57 -05:00
S Jannette
6840af1a47 Merge branch 'master' into audit1 2026-03-01 07:55:49 -05:00
S Jannette
c707b82f36 Revise README with new project overview
Updated project description and added overview section.
2026-03-01 07:51:57 -05:00
2 changed files with 123 additions and 0 deletions

123
README.md
View File

@@ -2,8 +2,10 @@
A lightweight on-chain monitoring and alerting system designed to give users situational awareness over blockchain addresses they care about. A lightweight on-chain monitoring and alerting system designed to give users situational awareness over blockchain addresses they care about.
# Overview # Overview
Koin Ping observes on-chain activity and notifies users when predefined conditions are met. It does not execute transactions, manage wallets, or speculate on prices. Koin Ping observes on-chain activity and notifies users when predefined conditions are met. It does not execute transactions, manage wallets, or speculate on prices.
## Getting Started ## Getting Started
### Prerequisites ### Prerequisites
@@ -98,6 +100,127 @@ to the database, and dispatches Discord notifications.
Firebase, communicates with the API via fetch, and renders the address/alert Firebase, communicates with the API via fetch, and renders the address/alert
management UI. management UI.
## Setting Up Your Alert Platforms
Koin Ping can send real-time alerts to **Telegram**, **Discord**, **Slack**, and **Email**. Each channel is configured per-user through the **Notification Settings** panel on the Alerts page.
Below are step-by-step guides for setting up each platform.
---
### Telegram
To receive alerts via Telegram, you need to create a bot and get your chat ID.
#### 1. Create a Telegram Bot
1. Open Telegram and search for **@BotFather** (look for the blue verified checkmark).
2. Open the conversation with BotFather and send: `/newbot`
3. BotFather will ask for a **display name** — enter something like `Koin Ping Alerts`.
4. BotFather will ask for a **username** — it must end in `bot`, e.g. `MyKoinPingBot`.
5. BotFather will reply with your **Bot Token** — a string that looks like `123456789:ABCdefGHIjklMNOpqrSTUvwxYZ`. Copy it.
#### 2. Get Your Chat ID
1. In Telegram, search for the bot username you just created and open the chat.
2. Tap **Start** or send any message (e.g. `hello`).
3. Open the following URL in your browser, replacing `YOUR_BOT_TOKEN` with the token from step 1:
```
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates
```
4. In the JSON response, find the `"chat"` object — the `"id"` field is your **Chat ID** (a numeric value).
> **Tip:** If the `"result"` array is empty, make sure you sent a message to your bot first, then refresh the page.
#### 3. Save in Koin Ping
1. Go to the **Alerts** page in Koin Ping.
2. In the **Notification Settings** panel, find the **Telegram** section.
3. Paste your **Bot Token** and **Chat ID** into the corresponding fields.
4. Click **Save Settings**.
5. Click **Test All Channels** to verify — you should receive a test message from your bot in Telegram.
---
### Discord
To receive alerts in a Discord channel, you need to create a webhook.
#### 1. Create a Discord Webhook
1. Open **Discord** and navigate to the server where you want to receive alerts.
2. Go to the channel you want alerts posted in (or create a new one, e.g. `#koin-alerts`).
3. Click the **gear icon** next to the channel name to open **Channel Settings**.
4. Go to **Integrations** > **Webhooks**.
5. Click **New Webhook**.
6. Give it a name (e.g. `Koin Ping`) and click **Copy Webhook URL**.
The URL will look like: `https://discord.com/api/webhooks/123456789/AbCdEfGhIjKl...`
#### 2. Save in Koin Ping
1. Go to the **Alerts** page in Koin Ping.
2. In the **Notification Settings** panel, find the **Discord** section.
3. Paste your **Webhook URL** into the field.
4. Click **Save Settings**.
5. Click **Test All Channels** to verify — you should see a test message appear in your Discord channel.
---
### Slack
To receive alerts in a Slack channel, you need to create an Incoming Webhook.
#### 1. Create a Slack App with Incoming Webhooks
1. Go to [https://api.slack.com/apps](https://api.slack.com/apps) and click **Create New App**.
2. Choose **From scratch**, give it a name (e.g. `Koin Ping`), and select your workspace.
3. In the app settings, go to **Incoming Webhooks** in the left sidebar.
4. Toggle **Activate Incoming Webhooks** to **On**.
5. Click **Add New Webhook to Workspace**.
6. Select the channel where you want alerts posted (e.g. `#koin-alerts`) and click **Allow**.
7. Copy the **Webhook URL** — it will start with `https://hooks.slack.com/services/...`
#### 2. Save in Koin Ping
1. Go to the **Alerts** page in Koin Ping.
2. In the **Notification Settings** panel, find the **Slack** section.
3. Paste your **Webhook URL** into the field.
4. Click **Save Settings**.
5. Click **Test All Channels** to verify — you should see a test message appear in your Slack channel.
---
### Email
Koin Ping sends email alerts and digests via [Resend](https://resend.com). To enable email notifications, the application owner must configure a Resend account and verified sending domain.
#### For Application Owners (Deployment Setup)
1. Create an account at [resend.com](https://resend.com).
2. Go to [resend.com/domains](https://resend.com/domains) and add your sending domain.
3. Add the DNS records Resend provides (SPF, DKIM, etc.) to your domain's DNS settings.
4. Once verified, create an API key at [resend.com/api-keys](https://resend.com/api-keys).
5. Set the following in your `.env` file:
```
RESEND_API_KEY=re_your_api_key_here
EMAIL_FROM=Your App <alerts@yourdomain.com>
```
6. Restart the API server and poller to pick up the changes.
#### For Users
1. Go to the **Alerts** page in Koin Ping.
2. In the **Notification Settings** panel, find the **Email** section.
3. Enter the email address where you want to receive alerts.
4. Click **Save Settings**.
5. Click **Verify Email** to receive a confirmation message.
6. Click **Test All Channels** to verify — you should receive a test alert at your email address.
## License ## License
MIT. See [LICENSE](LICENSE). MIT. See [LICENSE](LICENSE).

BIN
backend-go/api Executable file

Binary file not shown.