cosmos-sdk/tools/hubl
2023-03-06 23:08:05 +00:00
..
cmd/hubl fix: improve hubl errors (#14766) 2023-01-25 15:04:05 +00:00
internal refactor: simply errors (#15067) 2023-02-20 12:03:40 +00:00
.gitignore chore: add tooling and docs for hubl (#14743) 2023-01-23 22:12:22 +01:00
CHANGELOG.md chore: add tooling and docs for hubl (#14743) 2023-01-23 22:12:22 +01:00
go.mod build(deps): Bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#15275) 2023-03-06 23:08:05 +00:00
go.sum build(deps): Bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#15275) 2023-03-06 23:08:05 +00:00
Makefile chore: add tooling and docs for hubl (#14743) 2023-01-23 22:12:22 +01:00
README.md fix: improve hubl errors (#14766) 2023-01-25 15:04:05 +00:00
sonar-project.properties chore: add tooling and docs for hubl (#14743) 2023-01-23 22:12:22 +01:00

sidebar_position
1

Hubl

Hubl is a tool that allows you to query any Cosmos SDK based blockchain. It takes advantage of the new AutoCLI feature of the Cosmos SDK.

Installation

Hubl can be installed using go install:

go install cosmossdk.io/tools/hubl/cmd/hubl@latest

Or build from source:

git clone --depth=1 https://github.com/cosmos/cosmos-sdk
make hubl

The binary will be located in tools/hubl.

Usage

hubl --help

Add chain

To configure a new chain just run this command using the --init flag and the name of the chain as it's listed in the chain registry (https://github.com/cosmos/chain-registry).

If the chain is not listed in the chain registry, you can use any unique name.

hubl init [chain-name]
hubl init regen

The chain configuration is stored in ~/.hubl/config.toml.

:::tip

When using an unsecure gRPC endpoint, change the insecure field to true in the config file.

[chains]
[chains.regen]
[[chains.regen.trusted-grpc-endpoints]]
endpoint = 'localhost:9090'
insecure = true

Or use the --insecure flag:

hubl init regen --insecure

:::

Query

To query a chain, you can use the query command. Then specify which module you want to query and the query itself.

hubl regen query auth module-accounts