Type Alias AccountSubscriptionConfig

AccountSubscriptionConfig: Readonly<{
    commitment?: Commitment;
    encoding?:
        | "base58"
        | "base64"
        | "base64+zstd"
        | "jsonParsed";
}>

Type declaration

  • Optionalcommitment?: Commitment

    Optional commitment level

  • Optionalencoding?:
        | "base58"
        | "base64"
        | "base64+zstd"
        | "jsonParsed"

    Encoding format for Account data

    • base58 is slow.
    • jsonParsed encoding attempts to use program-specific state parsers to return more human-readable and explicit account state data
    • If jsonParsed is requested but a parser cannot be found, the field falls back to base64 encoding, detectable when the data field is type string.