Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
UserMapInterface
Interface UserMapInterface
Hierarchy
UserMapInterface
Implemented by
UserMap
Index
Methods
add
Pubkey
entries
entries
With
Slot
get
get
User
Authority
get
With
Slot
has
must
Get
must
Get
With
Slot
subscribe
unsubscribe
update
With
Order
Record
values
values
With
Slot
Methods
add
Pubkey
add
Pubkey
(
userAccountPublicKey
:
PublicKey
, userAccount
?:
UserAccount
, slot
?:
number
, accountSubscription
?:
UserSubscriptionConfig
)
:
Promise
<
void
>
Parameters
userAccountPublicKey:
PublicKey
Optional
userAccount:
UserAccount
Optional
slot:
number
Optional
accountSubscription:
UserSubscriptionConfig
Returns
Promise
<
void
>
entries
entries
(
)
:
IterableIterator
<
[
string
,
User
]
>
Returns
IterableIterator
<
[
string
,
User
]
>
entries
With
Slot
entries
With
Slot
(
)
:
IterableIterator
<
[
string
,
DataAndSlot
<
User
>
]
>
Returns
IterableIterator
<
[
string
,
DataAndSlot
<
User
>
]
>
get
get
(
key
:
string
)
:
User
Parameters
key:
string
Returns
User
get
User
Authority
get
User
Authority
(
key
:
string
)
:
PublicKey
Parameters
key:
string
Returns
PublicKey
get
With
Slot
get
With
Slot
(
key
:
string
)
:
DataAndSlot
<
User
>
Parameters
key:
string
Returns
DataAndSlot
<
User
>
has
has
(
key
:
string
)
:
boolean
Parameters
key:
string
Returns
boolean
must
Get
must
Get
(
key
:
string
, accountSubscription
?:
UserSubscriptionConfig
)
:
Promise
<
User
>
Parameters
key:
string
Optional
accountSubscription:
UserSubscriptionConfig
Returns
Promise
<
User
>
must
Get
With
Slot
must
Get
With
Slot
(
key
:
string
, accountSubscription
?:
UserSubscriptionConfig
)
:
Promise
<
DataAndSlot
<
User
>
>
Parameters
key:
string
Optional
accountSubscription:
UserSubscriptionConfig
Returns
Promise
<
DataAndSlot
<
User
>
>
subscribe
subscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
unsubscribe
unsubscribe
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
update
With
Order
Record
update
With
Order
Record
(
record
:
OrderRecord
)
:
Promise
<
void
>
Parameters
record:
OrderRecord
Returns
Promise
<
void
>
values
values
(
)
:
IterableIterator
<
User
>
Returns
IterableIterator
<
User
>
values
With
Slot
values
With
Slot
(
)
:
IterableIterator
<
DataAndSlot
<
User
>
>
Returns
IterableIterator
<
DataAndSlot
<
User
>
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
User
Map
Interface
add
Pubkey
entries
entries
With
Slot
get
get
User
Authority
get
With
Slot
has
must
Get
must
Get
With
Slot
subscribe
unsubscribe
update
With
Order
Record
values
values
With
Slot
Generated using
TypeDoc