Class UserMap

Hierarchy

  • UserMap

Implements

Constructors

Properties

commitment: Commitment
connection: Connection
decode: any
disableSyncOnTotalAccountsChange: boolean
driftClient: DriftClient
includeIdle: boolean
lastNumberOfSubAccounts: BN
mostRecentSlot: number = 0
subscription: PollingSubscription | WebsocketSubscription
syncConfig: SyncConfig
syncPromise?: Promise<void>
syncPromiseResolver: (() => void)

Type declaration

    • (): void
    • Returns void

userMap: Map<string, DataAndSlot<User>> = ...

Methods

  • gets the User for a particular userAccountPublicKey, if no User exists, undefined is returned

    Returns

    user User | undefined

    Parameters

    • key: string

      userAccountPublicKey to get User for

    Returns User

  • Returns a unique list of authorities for all users in the UserMap that meet the filter criteria

    Returns

    Parameters

    • Optional filterCriteria: UserAccountFilterCriteria

    Returns PublicKey[]

Generated using TypeDoc