본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

sparkbtcbot-proxy

echennells 제작

Web & Frontend Development
402clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Use a Spark Bitcoin L2 wallet proxy for AI agents via HTTP API.

설명

이 스킬이 하는 일

An HTTP proxy that gives AI agents scoped access to a Spark Bitcoin L2 wallet without exposing the private key or mnemonic. Agents authenticate with bearer tokens that carry role-based permissions and spending caps enforced server-side. Supports balance checks, Lightning invoice creation and payment, Spark transfers, and L402 paywall access.

Keeping the mnemonic off the agent and enforcing server-side spending limits makes it safe to give autonomous agents real payment capabilities without risking full wallet compromise.

사용 시점

  • Agent pays L402-gated API endpoints automatically
  • Read-only monitoring bot checks wallet balance on a schedule
  • Invoice-only agent receives payments without spending access
  • Multiple agents share one wallet with separate role-limited tokens
  • Revoke a compromised agent's access without moving funds

예시 워크플로

입력

User asks: fetch a joke from the L402-gated endpoint at https://lightningfaucet.com/api/l402/joke

에이전트
  1. 1

    Reads PROXY_URL and PROXY_TOKEN from environment

  2. 2

    POSTs to /api/l402 with the target URL and maxFeeSats limit

  3. 3

    Checks if response status is pending and polls /api/l402/status if so

  4. 4

    Returns the joke payload once payment confirms

출력

JSON with the joke content and priceSats showing how many sats were spent

요구 사항

  • PROXY_URL environment variable (HTTPS URL of your deployed sparkbtcbot-proxy instance)
  • PROXY_TOKEN environment variable (bearer token created via POST /api/tokens)
  • Deployed sparkbtcbot-proxy instance (Vercel with Upstash Redis)
  • Upstash Redis account for the proxy deployment

설치

clawhub install echennells/sparkbtcbot-proxy

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크