cosmos-sdk/tools/hubl
dependabot[bot] 9853db0dde
build(deps): Bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0 (#19187)
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>
2024-01-23 13:04:29 +00:00
..
cmd/hubl fix: improve hubl errors (#14766) 2023-01-25 15:04:05 +00:00
internal refactor(hubl): use latest client/v2 and sdk (#19110) 2024-01-19 08:53:14 +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/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0 (#19187) 2024-01-23 13:04:29 +00:00
go.sum build(deps): Bump github.com/dvsekhvalnov/jose2go from 1.5.0 to 1.6.0 (#19187) 2024-01-23 13:04:29 +00:00
Makefile chore: add tooling and docs for hubl (#14743) 2023-01-23 22:12:22 +01:00
README.md chore: fix spelling errors (#18734) 2023-12-13 14:05:58 +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 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