Skip to main content
The following examples are in Go, but the Python and TS SDKs can also be used to programatically interact with a node/Injective.
The following snippet shows how to query the state using gRPC inside a Go program. The idea is to create a gRPC connection, and use the Protobuf-generated client code to query the gRPC server.

Query for historical state using Go

Querying for historical blocks is done by adding the block height metadata in the gRPC request.
Last modified on March 30, 2026