Expand description
§tiders-svm-decode
Decodes Solana (SVM) program data from binary format into Apache Arrow RecordBatches.
Supports two types of decoding:
- Instructions — Decodes Borsh-serialized instruction data using 8-byte discriminators
and a typed parameter schema (
InstructionSignature). - Program logs — Decodes base64-encoded log event data using a typed parameter
schema (
LogSignature).
The type system (DynType / DynValue) supports all Borsh primitives (i8–i128,
u8–u128, bool) plus complex types (arrays, structs, enums, options).
Structs§
- Instruction
Signature - Defines the schema for decoding a Solana instruction: discriminator bytes, parameter types, and account names.
- LogSignature
- Defines the schema for decoding a Solana program log event: parameter types to decode from base64 data.
- Param
Input - Represents a parameter input with a name and dynamic type
Enums§
- DynType
- Represents a dynamic type that can be deserialized from binary data
- DynValue
- Represents a dynamically deserialized value
Functions§
- decode_
instructions - decode_
instructions_ batch - Decodes instruction data from an Arrow
RecordBatchinto a newRecordBatchof decoded parameters and accounts. - decode_
logs - Decodes base64-encoded log messages into a
RecordBatchof typed parameter columns. - decode_
logs_ batch - Decodes log event data from an Arrow
RecordBatchinto a newRecordBatchof decoded parameters. - deserialize_
data - Deserializes binary data into a vector of dynamic values based on the provided parameter types
- instruction_
signature_ to_ arrow_ schema - Converts an
InstructionSignatureinto an Arrow [Schema], mapping each parameter and account name to the corresponding Arrow field and data type. - match_
discriminators