cosmos-sdk/tools/hubl
dependabot[bot] 1f332e1e0b
build(deps): Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 (#22164)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-10-08 08:31:22 +00:00
..
cmd/hubl fix: improve hubl errors (#14766) 2023-01-25 15:04:05 +00:00
internal refactor(x/evidence): accept address codec in constructor (#21859) 2024-09-25 09:42:27 +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 google.golang.org/protobuf from 1.34.2 to 1.35.1 (#22164) 2024-10-08 08:31:22 +00:00
go.sum build(deps): Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 (#22164) 2024-10-08 08:31:22 +00:00
Makefile refactor(tools): echo the binary path after build tools (#21969) 2024-09-30 05:38:28 +00:00
README.md fix(docs): fix dead links (#20132) 2024-04-22 15:51:02 +00:00
sonar-project.properties chore: force reload sonar cloud (#20480) 2024-05-29 11:12:09 +00: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 insecure 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