Client Auth

CLI

A user can query and interact with the auth module using the CLI.

Query

The query commands allow users to query auth state.

simd query auth --help

account

The account command allow users to query for an account by it's address.

simd query auth account [address] [flags]

Example:

simd query auth account cosmos1...

Example Output:

'@type': /cosmos.auth.v1beta1.BaseAccount
account_number: "0"
address: cosmos1zwg6tpl8aw4rawv8sgag9086lpw5hv33u5ctr2
pub_key:
  '@type': /cosmos.crypto.secp256k1.PubKey
  key: ApDrE38zZdd7wLmFS9YmqO684y5DG6fjZ4rVeihF/AQD
sequence: "1"

accounts

The accounts command allow users to query all the available accounts

Example:

Example Output:

params

The params command allow users to query the current auth parameters.

Example:

Example output:

gRPC

A user can query the auth module using gRPC endpoints.

Account

The account endpoint allow users to query for an account by it's address.

Example:

Example output:

Accounts

The accounts endpoint allow users to query all the available accounts.

Example:

Example output:

Params

The params endpoint allow users to query the current auth parameters.

Example:

Example output:

REST

A user can query the auth module using REST endpoints.

Account

The account endpoint allow users to query for an account by it's address.

Accounts

The accounts endpoint allow users to query all the available accounts.

Params

The params endpoint allow users to query the current auth parameters.

Vesting

CLI

A user can query and interact with the vesting module using the CLI.

Transactions

The tx commands allow users to interact with the vesting module.

create-periodic-vesting-account

The create-periodic-vesting-account command creates a new vesting account funded with an allocation of tokens, where a sequence of coins and period length in seconds. Periods are sequential, in that the duration of of a period only starts at the end of the previous period. The duration of the first period starts upon account creation.

Example:

create-vesting-account

The create-vesting-account command creates a new vesting account funded with an allocation of tokens. The account can either be a delayed or continuous vesting account, which is determined by the '--delayed' flag. All vesting accounts created will have their start time set by the committed block's time. The end_time must be provided as a UNI epoch timestamp.

Example:

Last updated