yellowstone-grpc/examples/golang
Kirill Fomichev 7bd3596c34
proto: add optional field `ping` to `SubscribeRequest` (#227)
2023-10-31 14:14:38 +06:00
..
cmd/grpc-client Allow user defined TlsConfig (#98) 2023-03-21 19:28:46 -03:00
proto proto: add optional field `ping` to `SubscribeRequest` (#227) 2023-10-31 14:14:38 +06:00
Makefile change crates prefix to yellowstone (#95) 2023-03-20 20:40:32 -03:00
README.md move examples, new proto crate (#92) 2023-03-20 03:27:26 +08:00
go.mod move examples, new proto crate (#92) 2023-03-20 03:27:26 +08:00
go.sum move examples, new proto crate (#92) 2023-03-20 03:27:26 +08:00

README.md

Golang client for Solana gRPC interface

This is a sample golang client for the Solana gRPC interface.

Requires golang 1.17

Sample usage:

go1.17 run ./cmd/grpc-client/ -endpoint https://api.rpcpool.com:443 -x-token <token> -slots

You can also make non SSL connections:

go1.17 run ./cmd/grpc-client/ -endpoint http://api.rpcpool.com:80 -x-token <token> -blocks

Updating protofiles

Make sure you have protoc installed for go:

$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2

If you have dnf package manager:

dnf install golang-google-grpc golang-google-protobuf

You can run make to update the protofiles.