Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.67 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.67 KB

mitm-soroban

This repository provides a mitmproxy content view plugin designed to decode XDR properties both in requests and repsonses when interacting with the soroban-rpc server. This enhances the visibility and debugging capabilities of developers working with Soroban and Stellar network transactions.

Prerequisites

  • ensure that mitmproxy is installed and updated
  • soroban-cli is used to decode the XDR values, needs to be installed and in the PATH

Usage

To use this plugin, run mitmproxy with the following command:

mitmproxy -s soroban_rpc_view.py

The custom view automatically activates when the JSON-RPC protocol is detected. To toggle between different view plugins, simply press the m key.

Tips

For instance, you can utilize proxychains to route soroban-cli through mitmproxy:

proxychains soroban contract deploy --wasm contract.wasm  --network standalone  

Screenshots

Below are screenshots demonstrating the plugin in action:

Request (JSON view) Request (Soroban RPC view)
Request as plain JSON Request with Soroban-RPC view
Response (JSON view) Response (Soroban RPC view)
Response as plain JSON Response with Soroban-RPC view