🔍 Borsh Inspector

Decode and encode Borsh data with custom schemas. Full support for all Borsh data types including structs, enums, vectors, and primitives for Solana programs.

Borsh Inspector Mode

Schema Configuration

Decode Borsh Data

📥 Decode Borsh Data

Decode binary Borsh data to human-readable JSON with custom schemas. Support for hex, base64, and UTF-8 input formats.

📤 Encode to Borsh

Encode JSON data to Borsh binary format. Generate example data from schemas and export multiple formats.

🏗️ Schema Support

Hỗ trợ đầy đủ Borsh types: structs, enums, arrays, vectors, options, maps, sets and all primitive types.

📋 Common Templates

Pre-built schemas for Token Accounts, User Profiles, and common data structures in the Solana ecosystem.

🔧 Developer Tools

Copy/paste results, download JSON files, generate example data, and validate schemas real-time.

⚡ Performance

Optimized for large data processing with memory-efficient readers/writers and streaming support.

📖 Usage Guide

1. Decode Borsh Data:

  • Select hoặc create custom schema
  • Choose data format (hex/base64/utf8)
  • Paste raw binary data
  • Click "Decode Data" to view JSON result

2. Encode to Borsh:

  • Select schema template hoặc create custom
  • Generate example data hoặc input custom JSON
  • Click "Encode Data" to get binary output
  • Copy hex/base64 results for use in programs

3. Schema Format:

  • JSON format with name, type, and optional description
  • Support for nested structs, enums with variants
  • Primitives: u8/u16/u32/u64/u128, i8-i128, f32/f64, bool, string, pubkey
  • Collections: arrays (fixed), vectors (dynamic), options, maps, sets