Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

semiotic-ai/firehose-client

Repository files navigation

Extract blocks fromStreamingFast Firehoseprogramatically in Rust.

gRPC Endpoints

Env Vars

Use environment variables to provide Firehose Ethereum and FirehoseBeacon providers of your choice.

To do this, place a.env file in the root of theveemon repository.See the.env.example file, also in the root of this repository, for whatyou'll need, depending on your requirements. You may have access to aFirehose provider and/or may need to use a provider. For example, you canusePinax as an endpoint provider.

firehose-ethereum and firehose-beacon gRPC

proto files

We use the following protobuffers developed by Streamingfast via ourfirehose-protos crate:

See thefirehose-protos docs for informationon these protobuffers and links to the different repos that they've come from.

Also check outforrestrie forRust-compiled protobuffer Beacon block implementations.

gRPC Service Examples

If you're looking to quickly explore what the Firehose API offers,you can use thegrpcurl tool to test your connection, verify yourAPI token, and get a list of available gRPC services. This is a greatway to interact with the API without writing any code.

To get started, you can run the following command to retrieve theservice descriptions from the Firehose gRPC server:

grpcurl -plaintext<your-grpc-service>:<port> describe

Below is an example of the service descriptions you might see whenquerying the Firehose server:

grpc.health.v1.Health is a service:service Health {  rpc Check ( .grpc.health.v1.HealthCheckRequest ) returns ( .grpc.health.v1.HealthCheckResponse );  rpc Watch ( .grpc.health.v1.HealthCheckRequest ) returns ( stream .grpc.health.v1.HealthCheckResponse );}grpc.reflection.v1.ServerReflection is a service:service ServerReflection {  rpc ServerReflectionInfo ( stream .grpc.reflection.v1.ServerReflectionRequest ) returns ( stream .grpc.reflection.v1.ServerReflectionResponse );}grpc.reflection.v1alpha.ServerReflection is a service:service ServerReflection {  rpc ServerReflectionInfo ( stream .grpc.reflection.v1alpha.ServerReflectionRequest ) returns ( stream .grpc.reflection.v1alpha.ServerReflectionResponse );}sf.firehose.v1.Stream is a service:service Stream {  rpc Blocks ( .sf.firehose.v1.Request ) returns ( stream .sf.firehose.v1.Response );}sf.firehose.v2.Fetch is a service:service Fetch {  rpc Block ( .sf.firehose.v2.SingleBlockRequest ) returns ( .sf.firehose.v2.SingleBlockResponse );}sf.firehose.v2.Stream is a service:service Stream {  rpc Blocks ( .sf.firehose.v2.Request ) returns ( stream .sf.firehose.v2.Response );}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp