| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
A web-based tool for decoding and inspecting blob data from the ev-node Data Availability layer.
The blob-decoder tool provides a web interface for decoding protobuf-encoded blobs used in ev-node. It can decode blocks and other data structures from both hex and base64 encoded inputs, making it useful for debugging and inspecting DA layer data.
Install using go install:
go install github.com/evstack/ev-node/tools/blob-decoder@mainAfter installation, the blob-decoder binary will be available in your $GOPATH/bin directory.
Start the blob decoder server:
# Run on default port 8090
blob-decoder
# Run on custom port
blob-decoder 8080The server will start and display:
╔═══════════════════════════════════╗
║ Evolve Blob Decoder ║
║ by ev.xyz ║
╚═══════════════════════════════════╝
🚀 Server running at: http://localhost:8090
⚡ Using native Evolve protobuf decoding
Press Ctrl+C to stop the server
Open your browser and navigate to http://localhost:8090 to access the web interface.
The interface allows you to:
The decoder also provides a REST API endpoint:
POST /api/decode
Content-Type: application/json
{
"data": "<hex-or-base64-encoded-blob>",
"encoding": "hex" | "base64"
}Response:
{
"type": "Block",
"data": {
// Decoded block or data structure
},
"rawHex": "<hex-representation>",
"size": 1234,
"timestamp": "2024-01-01T00:00:00Z"
}# Start server on default port
blob-decoder
# Start server on port 3000
blob-decoder 3000
# Use with curl to decode a hex-encoded blob
curl -X POST http://localhost:8090/api/decode \
-H "Content-Type: application/json" \
-d '{"data": "0x...", "encoding": "hex"}'| Back | FazBrowse Home | New Git URL |