Skip to content

Mitmproxy content view plugin for soroban-rpc requests and responses

License

Notifications You must be signed in to change notification settings

axt/mitm-soroban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Mitmproxy content view plugin for soroban-rpc requests and responses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages