Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
PollingUserAccountSubscriber
Class PollingUserAccountSubscriber
Hierarchy
PollingUserAccountSubscriber
Implements
UserAccountSubscriber
Index
Constructors
constructor
Properties
account
Loader
callback
Id?
connection
decode
error
Callback
Id?
event
Emitter
is
Subscribed
user?
user
Account
Public
Key
Methods
add
To
Account
Loader
assert
Is
Subscribed
does
Account
Exist
fetch
fetch
If
Unloaded
get
User
Account
And
Slot
subscribe
unsubscribe
update
Data
Constructors
constructor
new
Polling
User
Account
Subscriber
(
connection
:
Connection
, userAccountPublicKey
:
PublicKey
, accountLoader
:
BulkAccountLoader
, decode
:
(
(
name
:
any
, buffer
:
any
)
=>
UserAccount
)
)
:
PollingUserAccountSubscriber
Parameters
connection:
Connection
userAccountPublicKey:
PublicKey
accountLoader:
BulkAccountLoader
decode:
(
(
name
:
any
, buffer
:
any
)
=>
UserAccount
)
(
name
:
any
, buffer
:
any
)
:
UserAccount
Parameters
name:
any
buffer:
any
Returns
UserAccount
Returns
PollingUserAccountSubscriber
Properties
account
Loader
account
Loader
:
BulkAccountLoader
Optional
callback
Id
callback
Id
?:
string
connection
connection
:
Connection
decode
decode
:
(
(
name
:
any
, buffer
:
any
)
=>
UserAccount
)
Type declaration
(
name
:
any
, buffer
:
any
)
:
UserAccount
Parameters
name:
any
buffer:
any
Returns
UserAccount
Optional
error
Callback
Id
error
Callback
Id
?:
string
event
Emitter
event
Emitter
:
StrictEventEmitter
<
EventEmitter
<
DefaultEventMap
>
,
UserAccountEvents
,
UserAccountEvents
,
"addEventListener"
|
"removeEventListener"
,
"on"
|
"addListener"
|
"removeListener"
|
"once"
|
"emit"
>
is
Subscribed
is
Subscribed
:
boolean
Optional
user
user
?:
DataAndSlot
<
UserAccount
>
user
Account
Public
Key
user
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
Account
And
Slot
get
User
Account
And
Slot
(
)
:
DataAndSlot
<
UserAccount
>
Returns
DataAndSlot
<
UserAccount
>
subscribe
subscribe
(
userAccount
?:
UserAccount
)
:
Promise
<
boolean
>
Parameters
Optional
userAccount:
UserAccount
Returns
Promise
<
boolean
>
unsubscribe
unsubscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
update
Data
update
Data
(
userAccount
:
UserAccount
, slot
:
number
)
:
void
Parameters
userAccount:
UserAccount
slot:
number
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
Polling
User
Account
Subscriber
constructor
account
Loader
callback
Id?
connection
decode
error
Callback
Id?
event
Emitter
is
Subscribed
user?
user
Account
Public
Key
add
To
Account
Loader
assert
Is
Subscribed
does
Account
Exist
fetch
fetch
If
Unloaded
get
User
Account
And
Slot
subscribe
unsubscribe
update
Data
Generated using
TypeDoc