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.
- ensure that mitmproxy is installed and updated
- soroban-cli is used to decode the XDR values, needs to be installed and in the PATH
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.
For instance, you can utilize proxychains to route soroban-cli
through mitmproxy
:
proxychains soroban contract deploy --wasm contract.wasm --network standalone
Below are screenshots demonstrating the plugin in action:
Request (JSON view) | Request (Soroban RPC view) |
---|---|
Response (JSON view) | Response (Soroban RPC view) |
---|---|