スキル一覧に戻る
b-open-io

wallet-send-bsv

by b-open-io

Core BSV blockchain operations plugin for Claude Code

1🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: wallet-send-bsv description: This skill should be used when the user asks to "send BSV", "transfer satoshis", "create payment transaction", "broadcast transaction", "send from WIF", or needs to build, sign, and broadcast P2PKH transactions using @bsv/sdk. allowed-tools: "Bash(bun:*)"

Wallet Send BSV

Send BSV transactions using @bsv/sdk with WhatsOnChain API.

When to Use

  • Send BSV to a recipient address
  • Create simple payment transactions
  • Transfer funds from a WIF private key

Usage

bun run skills/wallet-send-bsv/scripts/send.ts <from-wif> <to-address> <amount-satoshis>

# Show help
bun run skills/wallet-send-bsv/scripts/send.ts --help

# Example: Send 1000 satoshis
bun run skills/wallet-send-bsv/scripts/send.ts L1abc... 1BvBMSEY... 1000

Arguments

ArgumentDescription
from-wifPrivate key in WIF format (starts with K, L, or 5)
to-addressRecipient BSV address (starts with 1 or 3)
amount-satoshisAmount to send (1 BSV = 100,000,000 satoshis)

Dependencies

  • @bsv/sdk - BSV SDK for key/transaction operations
  • WhatsOnChain API - UTXO fetching and broadcast

Transaction Flow

  1. Parse and validate WIF private key
  2. Validate recipient address format
  3. Derive sender address from private key
  4. Fetch UTXOs from WhatsOnChain
  5. Build transaction with P2PKH inputs/outputs
  6. Calculate fee (1 sat/byte)
  7. Sign transaction
  8. Broadcast via WhatsOnChain API

Error Handling

  • Invalid WIF: Clear error with SDK message
  • Invalid address: Format validation error
  • Insufficient funds: Shows balance vs required amount
  • Network errors: Displays raw tx hex for manual broadcast

Network

Uses BSV mainnet via WhatsOnChain API:

  • UTXOs: GET /v1/bsv/main/address/{address}/unspent
  • Broadcast: POST /v1/bsv/main/tx/raw

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です