OpenParable
Skip to content
← Back to skills

Wallet Send Bsv

Apps & Automation
wallet-send-bsv

Wallet Send Bsv is an Agent Skill for apps & automation published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/wallet-send-bsv/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/wallet-send-bsv, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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