Estimate transaction fees for BSV transactions based on size and current fee rates.
Estimate BSV transaction fees based on size, inputs/outputs, or raw transaction hex. Use when you need to calculate fees before sending transactions or understand fee structure.
/plugin marketplace add b-open-io/bsv-skills/plugin install bsv-skills@b-open-ioThis skill is limited to using the following tools:
PRD.mdprogress.txtscripts/estimate.test.tsscripts/estimate.tsEstimate 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
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.