meep

Meep is a command line Bitcoin Cash script debugger
Install
go install github.com/gcash/meep@latest
Usage
Usage:
meep [OPTIONS] debug [debug-OPTIONS]
Enter the script debugging mode
Application Options:
-v, --version Print the version number and exit
Help Options:
-h, --help Show this help message
[debug command options]
-t, --tx= the full transaction hex or BCH mainnet txid. If only a txid is provided the
transaction will be looked up via the RPC server.
-i, --idx= the input index to debug
-a, --amt= the amount of the input (in satoshis) we're debugging. This can be omitted if the
transaction is in the BCH blockchain as it will be looked up via the RPC server.
-s, --pkscript= the input's scriptPubkey. This can be omitted if the transaction is in the BCH
blockchain as it will be looked up via the RPC server.
--rpcserver= A hostname:port for a gRPC API to use to fetch the transaction and scriptPubkey if
not providing through the options. (default: bchd.greyh.at:8335)
Keys
| Key |
Action |
F4, Right arrow or n |
Step forward |
F3, Left arrow or p |
Step back |
h |
Show or hide help for the next opcode |
Esc or q |
Quit |
Examples
// P2PKH
meep debug --tx=048e890c1931a8c3f908d5826943c47021c5bfebc6c8ef96684207c53cfa7ea3
// Tree signature
meep debug --tx=3332086562ccde663bec7928352098992b9e626bb8f1e95486d618219598c578
// Last will
meep debug --tx=b0f79eea9e05fe83e198efff4363e3e347d5efd77a22fbf39a09347162fb2560
Windows
The debugger needs a Windows console. Git Bash's default window (MinTTY) is not one, so in Git Bash start meep through winpty:
winpty meep debug --tx=048e890c1931a8c3f908d5826943c47021c5bfebc6c8ef96684207c53cfa7ea3
Alternatively, run meep from Windows Terminal, PowerShell or cmd.exe.