SwapChan
Never holds your keys ยท your wallet signs
blocktools CLI

Cookbook (by wallet type and chain)

blocktools cookbook by wallet type and chain: an index of the executable recipes.

This index points at the executable recipes. Every tested example in those files is run verbatim by scripts/recipe-check.py in e2e. Prefer the recipe over copying snippets from chat logs.

By wallet / input type

You have Go to
BIP39 seed (typos / missing word) recipes/input-seed-phrase.md, recipes/offline-recovery-guide.md
Electrum seed or wallet recipes/input-electrum.md
Bitcoin Core wallet.dat recipes/input-wallet-dat.md
Armory recipes/input-armory.md
MultiBit / bitcoinj recipes/input-multibit.md
Raw hex / WIF recipes/input-raw-key.md
Ethereum keystore recipes/input-keystore.md
xprv / xpub / address recipes/input-xprv.md, recipes/input-xpub-address.md
BIP38 / Blockchain.com tools bip38-open, blockchain-read + classify; see ROADMAP-PARITY
Password candidate lists pw-candidates piped into openers
Unknown file recipes/input-unknown.md โ†’ classify

By chain

See the chain table in recipes/README.md and CHAINS.md. Account-model chains (XLM, ALGO, ATOM, ADA, DOT, TON) use acct-tx; XRP uses xrp-tx; Monero uses xmr-keys / xmr-wallet.

By goal

Goal Recipe
List addresses --goal addresses via recover.sh
Check balance recipes/goal-check-balance.md
Sweep recipes/goal-sweep.md
Decode before sign recipes/decode-a-transaction.md
Offline verify + sign recipes/goal-verify-and-offline.md

Contract data (EVM, offline filters)

Goal Recipe
Unknown selector โ†’ signature (from a file you supply) recipes/evm-contract-data.md (b), sig-hash
Transaction input โ†’ arguments (jq + signature) recipes/evm-contract-data.md (a), abi-decode
eth_getLogs events โ†’ decoded fields recipes/evm-contract-data.md (c), abi-decode
eth_call return data (e.g. balanceOf) recipes/evm-contract-data.md (d), abi-decode
Revert data: Error(string), Panic, custom errors recipes/evm-contract-data.md (e), abi-decode
Arguments โ†’ calldata (eth_call/tx data), or a bare tuple (CREATE2 salt preimage) recipes/evm-contract-data.md (g), abi-encode
Deployment tx โ†’ contract address (CREATE, from + nonce) recipes/evm-contract-data.md (f), create-address
Factory + salt + init-code hash โ†’ CREATE2 address (e.g. a Uniswap V3 pool) recipes/evm-contract-data.md (f), abi-encode, sig-hash --keccak, create-address
ABI โ†’ selectors, collisions, ERC-165/ERC-20 interfaces recipes/evm-contract-data.md (h), abi-inspect
eth_getCode โ†’ proxy / delegation / EOF, compiler version, size limit, selector candidates recipes/evm-contract-data.md (i), bytecode-inspect
eth_signTypedData_v4 request or signed typed data โ†’ digest, recovered signer, verdict recipes/evm-contract-data.md (j), typed-data-verify
Solana or Tron transfer: build unsigned from a plan, decode, verify (chain auto-detected, --chain overrides) sol-tron-tx
Prove control of an address: sign a text message (Bitcoin signmessage P2PKH, Ethereum personal_sign), or verify one (chain detected from the address) msg-sign, msg-verify