Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
PollingTokenAccountSubscriber
Class PollingTokenAccountSubscriber
Hierarchy
PollingTokenAccountSubscriber
Implements
TokenAccountSubscriber
Index
Constructors
constructor
Properties
account
Loader
callback
Id?
error
Callback
Id?
event
Emitter
is
Subscribed
program
public
Key
token
Account
And
Slot?
Methods
add
To
Account
Loader
assert
Is
Subscribed
did
Subscription
Succeed
fetch
get
Token
Account
And
Slot
subscribe
unsubscribe
Constructors
constructor
new
Polling
Token
Account
Subscriber
(
publicKey
:
PublicKey
, accountLoader
:
BulkAccountLoader
)
:
PollingTokenAccountSubscriber
Parameters
publicKey:
PublicKey
accountLoader:
BulkAccountLoader
Returns
PollingTokenAccountSubscriber
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
>
,
TokenAccountEvents
,
TokenAccountEvents
,
"addEventListener"
|
"removeEventListener"
,
"on"
|
"addListener"
|
"removeListener"
|
"once"
|
"emit"
>
is
Subscribed
is
Subscribed
:
boolean
program
program
:
Program
<
Idl
>
public
Key
public
Key
:
PublicKey
Optional
token
Account
And
Slot
token
Account
And
Slot
?:
DataAndSlot
<
Account
>
Methods
add
To
Account
Loader
add
To
Account
Loader
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
assert
Is
Subscribed
assert
Is
Subscribed
(
)
:
void
Returns
void
did
Subscription
Succeed
did
Subscription
Succeed
(
)
:
boolean
Returns
boolean
fetch
fetch
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Token
Account
And
Slot
get
Token
Account
And
Slot
(
)
:
DataAndSlot
<
Account
>
Returns
DataAndSlot
<
Account
>
subscribe
subscribe
(
)
:
Promise
<
boolean
>
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
Token
Account
Subscriber
constructor
account
Loader
callback
Id?
error
Callback
Id?
event
Emitter
is
Subscribed
program
public
Key
token
Account
And
Slot?
add
To
Account
Loader
assert
Is
Subscribed
did
Subscription
Succeed
fetch
get
Token
Account
And
Slot
subscribe
unsubscribe
Generated using
TypeDoc