0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

grpcurl

Last updated at Posted at 2025-02-28
# no TLS
grpcurl -plaintext
  # Use plain-text HTTP/2 when connecting to server (no TLS).

cli flags

-max-time 10

-insecure
  Skip server certificate and domain verification. (NOT SECURE!) Not valid with -plaintext option.

geyser

grpcurl -plaintext -import-path yellowstone-grpc-proto/proto/ \
-proto geyser.proto list

geyser.Geyser
GRPC="127.0.0.1:9000" # no protocol

grpcurl -plaintext -import-path yellowstone-grpc-proto/proto/ \
-proto geyser.proto $GRPC geyser.Geyser/GetVersion

{
  "version": {
    "version": {
      "package": "yellowstone-grpc-geyser",
      "version": "5.0.0",
      "proto": "5.0.0",
      "solana": "2.1.13",
      "git": "",
      "rustc": "1.81.0",
      "buildts": ""
    },
    "extra": {
      "hostname": ""
    }
  }
}
grpcurl -d @ -plaintext -import-path yellowstone-grpc-proto/proto/ -proto geyser.proto <server_addr>:<port> geyser.Geyser/Ping <<EOF
{
  "count": 1
}
EOF

geyser method

geyser.Geyser/Subscribe
geyser.Geyser/SubscribeReplayInfo
geyser.Geyser/IsBlockhashValid
geyser.Geyser/GetLatestBlockhash
geyser.Geyser/GetBlockHeight
geyser.Geyser/GetSlot
geyser.Geyser/GetVersion
geyser.Geyser/Ping

Ref:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?