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

sparkbtcbot-proxy-deploy

echennells 제작

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

요약

Deploy a serverless Spark Bitcoin L2 proxy on Vercel with spending limits, auth, and Redis logging.

설명

이 스킬이 하는 일

Deploys a serverless middleware that wraps the Spark Bitcoin L2 SDK behind authenticated REST endpoints on Vercel. Handles role-based token auth, per-transaction and daily spending caps, and activity logging to Redis. Gives AI agents scoped wallet access without exposing the mnemonic.

Running the Spark SDK directly in an agent exposes the wallet mnemonic; this proxy isolates credentials server-side while giving agents only the permissions they need.

사용 시점

  • Set up a new Spark Bitcoin proxy on Vercel
  • Configure spending limits for an AI agent's wallet access
  • Create invoice-only tokens for merchant bots
  • Rotate the admin fallback auth token
  • Pay L402 Lightning paywalls automatically via an agent

예시 워크플로

입력

User asks: deploy a Spark proxy with a 10,000 sat per-transaction limit for my trading bot

에이전트
  1. 1

    Clone the sparkbtcbot-proxy repo and run npm install

  2. 2

    Create an Upstash Redis database via the Upstash management API using the user's email and API key

  3. 3

    Generate a BIP39 mnemonic and a random API_AUTH_TOKEN

  4. 4

    Deploy to Vercel with npx vercel --prod and set all 7 required environment variables via the Vercel REST API

  5. 5

    Test the deployment with a balance check and create an invoice-scoped token for the trading bot

출력

A live Vercel URL exposing authenticated REST endpoints with a 10,000 sat transaction cap and Redis activity logging

요구 사항

  • Vercel account
  • Upstash account email and API key from console.upstash.com/account/api
  • BIP39 mnemonic for the Spark wallet (can be generated during setup)

설치

clawhub install echennells/sparkbtcbot-proxy-deploy

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

링크