Skip to content

Commit

Permalink
sdk: add getSlot to bulk account loader
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Nov 20, 2023
1 parent 97c91fd commit 976a99b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/src/accounts/bulkAccountLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ export class BulkAccountLoader {
return this.bufferAndSlotMap.get(publicKey.toString());
}

public getSlot() : number {
return this.mostRecentSlot;
}

public startPolling(): void {
if (this.intervalId) {
return;
Expand Down

0 comments on commit 976a99b

Please sign in to comment.