Pi super node #25
Dragonpi489
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
sudo apt update && sudo apt upgrade -y
sudo apt update && sudo apt upgrade -y
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
curl http://localhost:11625
{
"build": "v20.4.0",
"network": "Test SDF Network ; September 2025",
"protocol_version": 25,
"status": "Catching up",
...
}
Starting Stellar Core with NETWORK=testnet
curl http://<IP-адрес Raspberry Pi>:11625
curl http://192.168.1.150:11625
#!/bin/bash
=== НАСТРОЙКА ТЕЛЕГРАМА ===
TELEGRAM_BOT_TOKEN="твой_бот_token"
CHAT_ID="твой_chat_id"
=== ФУНКЦИЯ УВЕДОМЛЕНИЯ ===
send_telegram_message() {
MESSAGE="$1"
curl -s -X POST "https://api.telegram.org/bot\$TELEGRAM_BOT_TOKEN/sendMessage"
-d chat_id="$CHAT_ID"
-d text="$MESSAGE"
}
send_telegram_message "🤖 Установка Pi Node на Raspberry Pi началась..."
=== УСТАНОВКА ===
sudo apt update && sudo apt upgrade -y
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
sudo apt install -y docker-compose
mkdir -p ~/pi-node && cd ~/pi-node
cat < docker-compose.yml
version: '3'
services:
stellar-core:
image: stellar/quickstart:latest
container_name: pi-stellar-node
ports:
- "11626:11626"
- "11625:11625"
environment:
- NETWORK=testnet
- NODE_NAME=pi-node
restart: unless-stopped
EOF
docker-compose up -d
sleep 15
RESPONSE=$(curl -s http://localhost:11625)
if [[ $RESPONSE == "protocol_version" ]]; then⚠️ Ошибка запуска Pi Node. Проверь вручную: curl http://localhost:11625"
send_telegram_message "✅ Pi Node успешно запущена на Raspberry Pi 🎉"
else
send_telegram_message "
fi
sudo apt update
sudo apt install python3-pip -y
pip3 install stellar-sdk
nano quantum create_cold_wallet.py
from stellar_sdk import Keypair
Генерация ключей
keypair = Keypair.random()
public_key = keypair.public_key
secret_key = keypair.secret
Сохраняем приватный ключ в файл
with open("cold_secret.key", "w") as f:
f.write(secret_key)
print("✅ Новый cold wallet создан")
print("🔑 Публичный ключ (адрес):", public_key)
print("🧊 Приватный ключ сохранён в cold_secret.key")
python3 create_cold_wallet.py
nano check_balance.py
from stellar_sdk import Server
public_key = "ТВОЙ_ПУБЛИЧНЫЙ_КЛЮЧ"
server = Server("https://horizon-testnet.stellar.org")
account = server.accounts().account_id(public_key).call()
print("Баланс:")
for balance in account['balances']:
print(f"{balance['balance']} {balance['asset_type']}")
🌐 Pi Network (опционально)
▲
|
Master Pi Node
(имеет интернет доступ)
▲
┌──────┴──────┐
| |
Cold Node 1 Cold Node 2 ...
(Raspberry Pi) (Raspberry Pi)
хочешь шифровать данные с помощью:
GPG
OpenSSL
Аппаратного модуля (если есть)
Нужно ли сохранять данные на:
SD-карту
Внешний HDD/SSD
Синхронизацию с центральным Pi
Просто мелькая идея, которую можно использовать.
Надеюсь была полезна информация.
Beta Was this translation helpful? Give feedback.
All reactions