bitcoin-testing-regtest
БесплатноБез исполняемых скриптовНе проверенRegtest mode: instant block generation, deterministic fork, multi-node setup, generatetoaddress, fallbackfee config. USE WHEN: building Bitcoin tests…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
regtest
Bitcoin's "regression test" mode. Local-only chain, instant block generation, no PoW difficulty. The default for Bitcoin testing.
Setup
bitcoind -regtest -daemon -fallbackfee=0.00001
bitcoin-cli -regtest createwallet test
bitcoin-cli -regtest -rpcwallet=test getnewaddress
# bcrt1q...
# Mine 101 blocks (subsidy matures after 100)
bitcoin-cli -regtest -rpcwallet=test generatetoaddress 101 <addr>
# Now wallet has 50 BTC mature
bitcoin-cli -regtest -rpcwallet=test getbalance
-fallbackfee is required because the empty regtest mempool has
no fee estimates.
Multi-node setup
# Node 1
bitcoind -regtest -datadir=/tmp/n1 -port=18444 -rpcport=18443 -daemon
# Node 2
bitcoind -regtest -datadir=/tmp/n2 -port=18445 -rpcport=18446 \
-connect=127.0.0.1:18444 -daemon
# Node 3
bitcoind -regtest -datadir=/tmp/n3 -port=18447 -rpcport=18448 \
-connect=127.0.0.1:18444 -daemon
Useful commands
# Mine blocks (deterministic; instant)
bitcoin-cli -regtest generatetoaddress 1 <addr>
# Reset chain (start fresh)
rm -rf ~/.bitcoin/regtest
bitcoind -regtest -daemon
# Specific block at specific time
bitcoin-cli -regtest setmocktime <unix_ts>
bitcoin-cli -regtest generatetoaddress 1 <addr>
Address prefixes
- P2PKH:
m...orn.... - P2SH:
2.... - Bech32:
bcrt1q.... - Bech32m:
bcrt1p....
Use cases
- Unit tests that need a real bitcoind.
- Integration tests for wallet / Lightning logic.
- Demos / tutorials with deterministic state.
- Reproducing bugs with controlled chain history.
Common bugs
- Forgetting
-fallbackfee→sendtoaddresserrors. - Forgetting to mine 100+ blocks before spending coinbase → "input immature".
- Mixing regtest output with mainnet RPC by accident → use distinct
-datadirand explicit-regtestarg.
See also
Установить bitcoin-testing-regtest в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл bitcoin-testing-regtest?
Regtest mode: instant block generation, deterministic fork, multi-node setup, generatetoaddress, fallbackfee config. USE WHEN: building Bitcoin tests, simulating network conditions, scaffolding integration tests.
Как установить скилл bitcoin-testing-regtest?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bitcoin-testing-regtest запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic