https://github.com/alexbsoft/ton-gram-faucet
Faucet for TON testnet
https://github.com/alexbsoft/ton-gram-faucet
Last synced: 3 months ago
JSON representation
Faucet for TON testnet
- Host: GitHub
- URL: https://github.com/alexbsoft/ton-gram-faucet
- Owner: AlexBSoft
- Created: 2020-04-20T12:39:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T13:07:01.000Z (over 3 years ago)
- Last Synced: 2025-07-04T07:05:01.945Z (12 months ago)
- Language: HTML
- Size: 120 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# [TON Faucet](https://ton-faucet.herokuapp.com/ "ton-faucet.herokuapp.com")
A Node.JS faucet app for Telgram Open Network testnet. Made using [tonweb](https://github.com/toncenter/tonweb "tonweb").
Working faucet: 💎 [ton-faucet.herokuapp.com](https://ton-faucet.herokuapp.com/ "ton-faucet.herokuapp.com")
Author: Alex B (t.me/alexbsoft)
## Features
- Automatic wallet creation and initialization
- Customizable payments
- HCaptcha support (optional)
- Integrated explorer
- Success transaction notification
- (TODO) payment limits per wallet/IP
- (TODO) admin interface
- (TODO) multiple faucet wallets
## Installation
After first run of app you will need to initialize Faucet wallet. Or you can manually enter wallet keys to config.json.
How to initialize wallet?
App will create config.json with wallet data. You just need to send GRAM to this wallet address. And then restart the app. Wallet will be deployed automatically if it has funds. Follow the instructions in the console.
## Configuration
** ENV variables**
- `PORT` - webserver port
- `PAYMENT` - payment amount (GRAM)
- `HCaptcha_secretkey` (Optional) provide if you want to enable HCaptcha
- `HCaptcha_sitekey` (Optional)
**config.json**
If this file does not exist, it will be generated automatically.
Besides, it can be created manually. You need to generate wallet and provide its data: address, status ("active"), PublicKey (Uint8Array), SecretKey (Uint8Array)
```json
{
"address": "UQAMPdBlavu7gq-VGoqK93gd88L9t74WYsBnR1_NJSMh1noh",
"status": "active",
"PublicKey": [123, 123, 123 ],
"SecretKey": [123, 123, 123]
}
```