Skip to main content
If your chain has custom modules, you can write your own query extensions that integrate seamlessly with QueryClient. This works with or without protobuf definitions.

From Protobuf Definitions

If you have generated TypeScript types from your .proto files (using ts-proto or similar), wire them up with createProtobufRpcClient:

Using the Extension

Compose your custom extension alongside built-in ones:

Without Protobuf Definitions

You can also query any ABCI path directly using the raw query interface:

Next Steps

Querying Overview

All built-in query extensions.

CosmWasm Queries

Smart contract queries using the wasm extension.