fix-btc-e2e-p1

fix-btc-e2e-p1 is a command for Claude Code from hiromaily/go-crypto-wallet. It costs 0 tokens per session (545 once invoked), scanned A, original, MIT.

A command guide for fixing a Bitcoin end-to-end test using a two-of-three multisignature payment pattern. Multisignature means that two of three available keys must approve a transaction.

In plain words
What is it for?
Use it to debug, reset, run verbosely, or clean up the Bitcoin P2PKH two-of-three multisignature test.
Why use it?
The test depends on a specific address format, descriptor, wallet sequence, and number of signatures. The guide helps diagnose errors caused by using the wrong setup.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to debug, reset, run verbosely, or clean up the Bitcoin P2PKH two-of-three multisignature test.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hiromaily/go-crypto-wallet/fix-btc-e2e-p1
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-btc-e2e-p1

README.md
[![agentmods](https://agentmods.dev/badge/commands/hiromaily/go-crypto-wallet/fix-btc-e2e-p1/github.svg)](https://agentmods.dev/commands/hiromaily/go-crypto-wallet/fix-btc-e2e-p1)
Your own site
<a href="https://agentmods.dev/commands/hiromaily/go-crypto-wallet/fix-btc-e2e-p1"><img src="https://agentmods.dev/badge/commands/hiromaily/go-crypto-wallet/fix-btc-e2e-p1/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-btc-e2e-p1

Your own site · 80×15
<a href="https://agentmods.dev/commands/hiromaily/go-crypto-wallet/fix-btc-e2e-p1"><img src="https://agentmods.dev/badge/commands/hiromaily/go-crypto-wallet/fix-btc-e2e-p1.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00545
Opus 5 $0.00000 $0.00272
Sonnet 5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00055

Measured 11d ago against content hash fee5d3c09784, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fix-btc-e2e-p1 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/e2e/btc/fix-btc-e2e-p1.md · 73 lines

What it actually says

Fix BTC E2E Pattern 1 #{issue_number}

Fix errors in BTC E2E test (Pattern 1: P2PKH Single-sig).

Prerequisites

MUST read: @.claude/rules/btc/e2e-script.md (common rules, errors, debug commands)

Pattern 1 Specifications

Item Value
Pattern 1 - P2PKH Single-sig
address_type legacy
Address Format m.../n... (regtest P2PKH)
Descriptor pkh([fp/44'/0'/0']xpub/0/*)
Signature Single-sig (1)
Wallets watch, keygen

Execution

# Run E2E test (build is automatic)
make btc-e2e-reset P=1

# Verbose mode
make btc-e2e-verbose P=1

# Cleanup
make btc-e2e-cleanup P=1

Pattern-Specific Files

Type File
Script scripts/operation/btc/e2e/e2e-p1-p2pkh-singlesig.sh
Account Config config/wallet/account/account.yaml

Pattern 1 vs Other Patterns

Item Pattern 1 Pattern 2 (2-of-3)
Signature Single-sig 2-of-3 Multisig
Wallets keygen only keygen + sign1 + sign2
Address m.../n... (P2PKH) 2... (P2SH)

Pattern-Specific Errors

Descriptor Import Failed

# Check descriptor format (should be pkh(...))
jq '.[0].desc' data/descriptor/btc/payment_descriptors.json

Expected: pkh([fingerprint/44'/0'/0']xpub.../0/*)

address_type Mismatch

# Verify environment variable
echo $WALLET_ADDRESS_TYPE  # Should be "legacy"

Git Workflow

When {issue_number} is specified:

  • Branch: fix/btc-e2e-p1-{issue_number}
  • Commit: fix(btc): ...
  • Skill: @.claude/skills/git-workflow/SKILL.md
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 73 lines · 0 tokens per session scan A fee5d3c09784

Subscribe to this mod's changes

fix-btc-e2e-p1 is a command published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 545 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.