BTC Script VM is a tool that verifies scripts of a specified txid using a virtual machine (VM).
It uses the mempool.space API to extract transactions, and the obtained transactions are stored in a Bolt database.
This project is written in Go, so you need to have Go installed. If you haven't installed Go yet, please install it from here.
- Clone this repository:
git clone [email protected]:YusukeShimizu/btc_script_vm_debug_tool.git
- Move to the project directory:
cd btc_script_vm_debug_tool
- Run the project. Specify the txid as a command line argument:
go run ./... <txid> <loglevel:optional>
By running the following command, the transaction script with txid 975ec405ac9dc9fa5ab8009d94d6a1fe31dff8a8127ea90d023104e52754e4d7
will be verified:
go run ./... 975ec405ac9dc9fa5ab8009d94d6a1fe31dff8a8127ea90d023104e52754e4d7
This project depends on the following libraries:
- mempool.space API - For extracting transaction data
- Bolt - A key-value store to save transaction data