skills/estimate-transaction-fee/SKILL.md
This skill should be used when the user asks to "estimate transaction fee", "calculate BSV fee", "fee per byte", "transaction cost", or needs to estimate fees based on transaction size and current rates.
npx skillsauth add b-open-io/bsv-skills estimate-transaction-feeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Estimate fees for BSV transactions based on size and fee rates.
# Estimate by size
bun run skills/estimate-transaction-fee/scripts/estimate.ts --size 226
# Estimate from raw tx hex
bun run skills/estimate-transaction-fee/scripts/estimate.ts --tx <hex>
# Estimate by inputs/outputs
bun run skills/estimate-transaction-fee/scripts/estimate.ts --inputs 2 --outputs 3
# Custom fee rate
bun run skills/estimate-transaction-fee/scripts/estimate.ts --size 226 --rate 2
# JSON output
bun run skills/estimate-transaction-fee/scripts/estimate.ts --size 226 --json
# Show help
bun run skills/estimate-transaction-fee/scripts/estimate.ts --help
P2PKH transaction size formula:
Example: 1 input + 2 outputs = 10 + 148 + 68 = 226 bytes
Default output:
Fee Estimation
==============
Size: 226 bytes
Rate: 1 sat/byte
Fee: 226 satoshis (0.00000226 BSV)
With --inputs/--outputs (shows breakdown):
Fee Estimation
==============
Size: 226 bytes
Rate: 1 sat/byte
Fee: 226 satoshis (0.00000226 BSV)
Breakdown:
- Inputs (1): ~148 bytes
- Outputs (2): ~68 bytes
- Overhead: ~10 bytes
JSON output (--json):
{
"size": 226,
"rate": 1,
"fee": 226,
"feeBsv": 0.00000226
}
Complete
development
This skill should be used when the user asks to integrate "Yours Wallet", "connect a BSV wallet", use "BRC-100", "pay with BSV wallet", add "wallet checkout in a web app", use "yours-wallet-provider", build a "pay with Yours Wallet" button, access "window.CWI", or connect a React app to a BRC-100 wallet.
development
This skill should be used when the user asks to "send BSV", "transfer satoshis", "create payment transaction", "send from WIF", "P2PKH transaction", or needs to build, sign, and broadcast P2PKH transactions from a WIF private key using @bsv/sdk.
development
This skill should be used when the user asks to "encrypt message with BSV key", "decrypt with private key", "ECDH encryption", "AES-256-GCM BSV", "EncryptedMessage", "BRC-2 encryption", or needs to encrypt/decrypt data using BSV keys and @bsv/sdk.
tools
This skill should be used when the user asks to "implement BRC-100 wallet", "use wallet-toolbox", "TypeScript BSV wallet", "BRC-100 implementation", "desktop wallet", "Electron wallet", "browser wallet", "IndexedDB wallet storage", "wallet actions", "wallet baskets", "UTXO management", "createAction", "listOutputs", "wallet certificates", "WalletClient", "noSend", "BEEF payment", "pay-beef", "send BEEF", "Transaction.fromBEEF", "toHexBEEF", or needs guidance on building conforming wallets using @bsv/wallet-toolbox or connecting to a user's BRC-100 wallet via WalletClient.