@triton-one/yellowstone-grpc
Advanced tools
Comparing version 0.1.0 to 0.1.2
/** | ||
* TypeScript/JavaScript client for gRPC Geyser. | ||
*/ | ||
import { CommitmentLevel, GetLatestBlockhashResponse, GeyserClient, IsBlockhashValidResponse, SubscribeRequestFilterAccounts, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeRequestFilterSlots, SubscribeRequestFilterTransactions } from "./grpc/geyser"; | ||
import { CommitmentLevel, GetLatestBlockhashResponse, GeyserClient, IsBlockhashValidResponse, SubscribeRequestAccountsDataSlice, SubscribeRequestFilterAccounts, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeRequestFilterSlots, SubscribeRequestFilterTransactions } from "./grpc/geyser"; | ||
export { SubscribeRequest, SubscribeRequest_AccountsEntry, SubscribeRequest_SlotsEntry, SubscribeRequestFilterSlots, SubscribeRequest_TransactionsEntry, SubscribeRequestFilterTransactions, SubscribeRequest_BlocksEntry, SubscribeRequest_BlocksMetaEntry, SubscribeRequestFilterAccounts, SubscribeRequestFilterAccountsFilter, SubscribeRequestFilterAccountsFilterMemcmp, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeUpdate, SubscribeUpdateAccount, SubscribeUpdateAccountInfo, SubscribeUpdateSlot, CommitmentLevel, SubscribeUpdateTransaction, SubscribeUpdateTransactionInfo, SubscribeUpdateBlock, SubscribeUpdatePing, SubscribeUpdateBlockMeta, } from "./grpc/geyser"; | ||
@@ -10,3 +10,3 @@ export default class Client { | ||
subscribe(): Promise<import("@grpc/grpc-js").ClientDuplexStream<import("./grpc/geyser").SubscribeRequest, import("./grpc/geyser").SubscribeUpdate>>; | ||
subscribe_once(accounts: { | ||
subscribeOnce(accounts: { | ||
[key: string]: SubscribeRequestFilterAccounts; | ||
@@ -21,3 +21,3 @@ }, slots: { | ||
[key: string]: SubscribeRequestFilterBlocksMeta; | ||
}, commitment?: CommitmentLevel | undefined): Promise<import("@grpc/grpc-js").ClientDuplexStream<import("./grpc/geyser").SubscribeRequest, import("./grpc/geyser").SubscribeUpdate>>; | ||
}, commitment: CommitmentLevel | undefined, accountsDataSlice: SubscribeRequestAccountsDataSlice[]): Promise<import("@grpc/grpc-js").ClientDuplexStream<import("./grpc/geyser").SubscribeRequest, import("./grpc/geyser").SubscribeUpdate>>; | ||
ping(count: number): Promise<number>; | ||
@@ -24,0 +24,0 @@ getLatestBlockhash(commitment?: CommitmentLevel): Promise<GetLatestBlockhashResponse>; |
@@ -111,3 +111,3 @@ "use strict"; | ||
}; | ||
Client.prototype.subscribe_once = function (accounts, slots, transactions, blocks, blocksMeta, commitment) { | ||
Client.prototype.subscribeOnce = function (accounts, slots, transactions, blocks, blocksMeta, commitment, accountsDataSlice) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -127,3 +127,4 @@ var stream; | ||
blocksMeta: blocksMeta, | ||
commitment: commitment | ||
commitment: commitment, | ||
accountsDataSlice: accountsDataSlice | ||
}, function (err) { | ||
@@ -130,0 +131,0 @@ if (err === null || err === undefined) { |
{ | ||
"name": "@triton-one/yellowstone-grpc", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"license": "Apache-2.0", | ||
@@ -34,3 +34,4 @@ "author": "Triton One", | ||
"typescript": "^4.9.5" | ||
} | ||
}, | ||
"files": ["dist"] | ||
} |
@@ -1,2 +0,2 @@ | ||
# Yellowstone Node.js gRPC client example | ||
# Yellowstone Node.js gRPC client | ||
@@ -3,0 +3,0 @@ This library implements a client for streaming account updates for backend applications. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
758171
8
17429
1