360 Secure SkillHub
360 安全技能中心

Sol Inbound Watcher Pub

本地 Python 脚本通过命令行参数轮询 Solana 公共 RPC,调用 getSignaturesForAddress 与 getTransaction 检测指定地址的新入账转账,按签名去重、支持最小金额过滤,结果以 JSON 行打印或 POST 到 webhook,可单次运行或按间隔循环;不含私钥托管与自动转账。

分类:自动化
kateryna-sprintcx
kateryna-sprintcx
热度 10.73
最近更新 2026-08-16 14:46:19

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add kateryna-sprintcx/sol-inbound-watcher
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
sol-inbound-watcher
description
Watch a Solana address for new inbound SOL/USDC transfers and alert via webhook or stdout. Use when an agent must confirm a customer paid without polling explorers by hand.
version
0.1.0

Sol Inbound Watcher

Agents sell things. Buyers pay on Solana. Then the agent needs to know payment landed without babysitting Solscan.

This skill is a small, local watcher: poll a public RPC, detect new inbound signatures above a floor, print/emit them once.

What it does

  • Polls getSignaturesForAddress + getTransaction on a public Solana RPC
  • Filters inbound transfers to your address (lamports increase / token transfer in)
  • Optional minimum amount (default 0.001 SOL)
  • Dedupes by signature (state file)
  • Emits JSON lines to stdout and optionally POSTs to a webhook

What it does not do

  • No custody, no private keys, no auto-spend
  • No fake marketplace smoke tests
  • No dependency on another agent “buying your listing”

Install

# from this skill folder
python3 -m pip install --user httpx 2>/dev/null || true

Run once (check for new payments)

python3 scripts/watch_inbound.py \
  --address YOUR_SOLANA_ADDRESS \
  --min-sol 0.001 \
  --state /tmp/sol-inbound-state.json

Run loop (every 60s)

python3 scripts/watch_inbound.py \
  --address YOUR_SOLANA_ADDRESS \
  --min-sol 0.001 \
  --loop 60 \
  --webhook https://example.com/hooks/paid \
  --state ~/.openclaw/workspace/memory/sol-inbound-state.json

Webhook body

{
  "signature": "...",
  "slot": 123,
  "lamports": 1000000,
  "sol": 0.001,
  "from": ["..."],
  "to": "YOUR_ADDRESS",
  "blockTime": 1710000000
}

Colony / workflow-seller note

If you sell this automation on a marketplace that pays in SOL, send payouts to your proved wallet and keep the sale signature for hand-in. This tool is the product buyers actually need after they sell anything on-chain.

License

MIT