Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Get Started with dfuse graphQL API over gRPC

This simple programme demonstrates how easy it is to query our graphQL API over gRPC.

  • It uses our go client to retrieve a JWT that will then be used to create the gRPC credential.
  • Create a gRPC connection.
  • Instantiate a graphQL client.
  • Write a simple graphQL query
  • Execute the query and wait for response

Before you begin

Get the source code

  • git clone
  • git clone

Generates the graphql.pb.go

  • protoc -I graphql-over-grpc graphql/graphql.proto --go_out=plugins=grpc:./example-graphql-grpc

Getting project dependencies

  • cd example-graphql-grpc
  • go mod init main
  • go mod tidy

Run it!

Useful links

You can’t perform that action at this time.