- Notifications
You must be signed in to change notification settings - Fork0
License
semiotic-ai/firehose-client
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Extract blocks fromStreamingFast Firehoseprogramatically in Rust.
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.
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.
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
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.