cosmos-sdk/tools/hubl
dependabot[bot] d2d35c4e5c
build(deps): Bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9 in /tools/hubl (#17072)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-20 06:52:03 +00:00
..
cmd/hubl fix: improve hubl errors (#14766) 2023-01-25 15:04:05 +00:00
internal feat(client/v2): support consensus address decoding (#16927) 2023-07-14 08:07:28 +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 github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9 in /tools/hubl (#17072) 2023-07-20 06:52:03 +00:00
go.sum build(deps): Bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9 in /tools/hubl (#17072) 2023-07-20 06:52:03 +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