Account Decoder

class UiDataSliceConfig

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
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
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