Skip to content

Step-by-step replay of a solana transaction in the browser, with CPI support.

Notifications You must be signed in to change notification settings

jawilk/sol-tx-dbg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step-by-step replay of a solana transaction in the browser, with CPI support. It uses an lldb wasm build in the browser and an execution environment with the vm on sever side (slow). If a CPI is encountered, a new browser tab is opened. A demo can be found here https://www.youtube.com/watch?v=42N-S7gg3-Q.
https://sol-tx.wtf (inactive)

sol-tx-dbg

alt text alt text

Setup

Init

git clone https://github.com/jawilk/sol-tx-dbg
cd sol-tx-dbg
git submodule update --init --recursive
git lfs pull

Build app

cd app
yarn install

Build poc

cd backend/poc
cargo build

Build server

cd backend/server
cargo build

Install websockify

git clone --branch sol-tx-dbg https://github.com/jawilk/websockify
cd websockify
python3 setup.py install

Start

App

cd app
yarn serve --port 8084

Server

cd backend/server
cargo run

Poc

cd backend/websockify
websockify :9007 --token-plugin PortOnly --token-source temp.txt