Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.22 KB

readme.md

File metadata and controls

35 lines (27 loc) · 1.22 KB

BTC Script VM debug tool

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.

Installation

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.

Usage

  1. Clone this repository:
    git clone [email protected]:YusukeShimizu/btc_script_vm_debug_tool.git
  2. Move to the project directory:
    cd btc_script_vm_debug_tool
  3. Run the project. Specify the txid as a command line argument:
    go run ./... <txid> <loglevel:optional>

Example

By running the following command, the transaction script with txid 975ec405ac9dc9fa5ab8009d94d6a1fe31dff8a8127ea90d023104e52754e4d7 will be verified:

go run ./... 975ec405ac9dc9fa5ab8009d94d6a1fe31dff8a8127ea90d023104e52754e4d7

Dependencies

This project depends on the following libraries: