Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
PollingUserStatsAccountSubscriber
Class PollingUserStatsAccountSubscriber
Hierarchy
PollingUserStatsAccountSubscriber
Implements
UserStatsAccountSubscriber
Index
Constructors
constructor
Properties
account
Loader
callback
Id?
error
Callback
Id?
event
Emitter
is
Subscribed
program
user
Stats?
user
Stats
Account
Public
Key
Methods
add
To
Account
Loader
assert
Is
Subscribed
does
Account
Exist
fetch
fetch
If
Unloaded
get
User
Stats
Account
And
Slot
subscribe
unsubscribe
Constructors
constructor
new
Polling
User
Stats
Account
Subscriber
(
program
:
Program
<
Idl
>
, userStatsAccountPublicKey
:
PublicKey
, accountLoader
:
BulkAccountLoader
)
:
PollingUserStatsAccountSubscriber
Parameters
program:
Program
<
Idl
>
userStatsAccountPublicKey:
PublicKey
accountLoader:
BulkAccountLoader
Returns
PollingUserStatsAccountSubscriber
Properties
account
Loader
account
Loader
:
BulkAccountLoader
Optional
callback
Id
callback
Id
?:
string
Optional
error
Callback
Id
error
Callback
Id
?:
string
event
Emitter
event
Emitter
:
StrictEventEmitter
<
EventEmitter
<
DefaultEventMap
>
,
UserStatsAccountEvents
,
UserStatsAccountEvents
,
"addEventListener"
|
"removeEventListener"
,
"on"
|
"addListener"
|
"removeListener"
|
"once"
|
"emit"
>
is
Subscribed
is
Subscribed
:
boolean
program
program
:
Program
<
Idl
>
Optional
user
Stats
user
Stats
?:
DataAndSlot
<
UserStatsAccount
>
user
Stats
Account
Public
Key
user
Stats
Account
Public
Key
:
PublicKey
Methods
add
To
Account
Loader
add
To
Account
Loader
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
assert
Is
Subscribed
assert
Is
Subscribed
(
)
:
void
Returns
void
does
Account
Exist
does
Account
Exist
(
)
:
boolean
Returns
boolean
fetch
fetch
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
fetch
If
Unloaded
fetch
If
Unloaded
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
User
Stats
Account
And
Slot
get
User
Stats
Account
And
Slot
(
)
:
DataAndSlot
<
UserStatsAccount
>
Returns
DataAndSlot
<
UserStatsAccount
>
subscribe
subscribe
(
userStatsAccount
?:
UserStatsAccount
)
:
Promise
<
boolean
>
Parameters
Optional
userStatsAccount:
UserStatsAccount
Returns
Promise
<
boolean
>
unsubscribe
unsubscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
Polling
User
Stats
Account
Subscriber
constructor
account
Loader
callback
Id?
error
Callback
Id?
event
Emitter
is
Subscribed
program
user
Stats?
user
Stats
Account
Public
Key
add
To
Account
Loader
assert
Is
Subscribed
does
Account
Exist
fetch
fetch
If
Unloaded
get
User
Stats
Account
And
Slot
subscribe
unsubscribe
Generated using
TypeDoc