@triton-one/yellowstone-grpc 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc.json +1 -0
- package/README.md +26 -0
- package/dist/grpc/geyser.d.ts +8450 -0
- package/dist/grpc/geyser.js +2868 -0
- package/dist/grpc/solana-storage.d.ts +3773 -0
- package/dist/grpc/solana-storage.js +1856 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +265 -0
- package/package.json +35 -0
- package/src/grpc/geyser.ts +3477 -0
- package/src/grpc/solana-storage.ts +2141 -0
- package/src/index.ts +190 -0
- package/tsconfig.json +7 -0
package/.prettierrc.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Yellowstone Node.js gRPC client example
|
|
2
|
+
|
|
3
|
+
This library implements a client for streaming account updates for backend applications.
|
|
4
|
+
|
|
5
|
+
You can find more information and documentation on the [Triton One website](https://docs.triton.one/project-yellowstone/introduction).
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
You need to have the latest version of `protoc` installed.
|
|
10
|
+
Please refer to the [installation guide](https://grpc.io/docs/protoc-installation/) on the Protobuf website.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
Install required dependencies by running
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Build the project (this will generate the gRPC client and compile TypeScript):
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
npm run build
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Please refer to [examples/typescript](../examples/typescript/README.md) for some usage examples.
|