Account Decoder
- class UiDataSliceConfig(offset, length)
Configuration object for limiting returned account data.
- Parameters:
offset (int) – Skip this many bytes at the beginning of the data.
length (int) – Return only this many bytes.
- length
- offset
- class UiAccountEncoding
Encoding options for account data.
- Base58 = UiAccountEncoding.Base58
- Base64 = UiAccountEncoding.Base64
- Base64Zstd = UiAccountEncoding.Base64Zstd
- Binary = UiAccountEncoding.Binary
- JsonParsed = UiAccountEncoding.JsonParsed
- class ParsedAccount(program, parsed, space)
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- parsed
- program
- space
- to_json()
Convert to a JSON string.
- class UiTokenAmount(ui_amount, decimals, amount, ui_amount_string)
- amount
- decimals
- static from_bytes(data)
Deserialize from bytes.
- Parameters:
data (bytes) – the serialized object.
Returns: the deserialized object.
- static from_json(raw)
Build from a JSON string.
- to_json()
Convert to a JSON string.
- ui_amount
- ui_amount_string