The following examples are in Go, but the Python and TS SDKs can also be used to programatically interact with a node/Injective.
Interact with a node programmatically with Go
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.
Last modified on March 30, 2026
