| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A collection of JavaScript parsers for Solana blockchain logs and transaction data.
This project contains various parser implementations that demonstrate different techniques for extracting structured data from Solana-related inputs, including:
| File | Description |
|---|---|
| parser_base.js | Basic log parser — splits by space, extracts level and message |
| parser_base_2.js | Log parser with severity mapping (ERROR=3, WARN=2, else=1) |
| colon_parser_base.js | Colon-separated log parser — extracts level and message |
| netsted_colon_parser.js | Nested colon log parser — extracts source, label, and value |
| File | Description |
|---|---|
| tx_parser.js | Basic transaction parser — extracts status and fee |
| tx_parser_2.js | Transaction parser with instruction count |
| tx_parser_3.js | Transaction parser extracting program names list |
| tx_parser_4.js | Transaction parser mapping instructions to program/action objects |
| tx_parser_5.js | Transaction parser with protocol-specific type prefixes (DEX_, TOKEN_) |
| tx_nested_parser.js | Nested instruction parser handling innerInstructions with type mapping |
Each file is standalone and can be run directly with Node.js:
node parser_base.js
node tx_parser_5.js
node colon_parser_base.jsInput: "ERROR User not found"
Output: { level: "ERROR", msg: "User not found" }
Input: Transaction with Jupiter Swap + Token Program Transfer
Output: { status: true, fee: 5000, instructions: [ { type: "DEX_SWAP", protocol: "Jupiter" }, { type: "TOKEN_TRANSFER", protocol: "Token Program" } ] }
These parsers serve as building blocks and learning examples for processing Solana program logs and transaction structures, useful for indexers, explorers, and analytics pipelines.
| Back | FazBrowse Home | New Git URL |