Type Alias GetProgramAccountsConfig

GetProgramAccountsConfig: {
    commitment?: Commitment;
    dataSlice?: DataSlice;
    encoding?: "base64";
    filters?: GetProgramAccountsFilter[];
    minContextSlot?: number;
    withContext?: boolean;
}

Configuration object for getProgramAccounts requests

Type declaration

  • Optionalcommitment?: Commitment

    Optional commitment level

  • OptionaldataSlice?: DataSlice

    Optional data slice to limit the returned account data

  • Optionalencoding?: "base64"

    Optional encoding for account data (default base64) To use "jsonParsed" encoding, please refer to getParsedProgramAccounts in connection.ts

  • Optionalfilters?: GetProgramAccountsFilter[]

    Optional array of filters to apply to accounts

  • OptionalminContextSlot?: number

    The minimum slot that the request can be evaluated at

  • OptionalwithContext?: boolean

    wrap the result in an RpcResponse JSON object