Auth

Params queries all parameters.

get
Responses
chevron-right
200

A successful response.

application/json

QueryParamsResponse is the response type for the Query/Params RPC method.

get
/cosmos/auth/v1beta1/params

AccountInfo queries account info which is common to all account types.

get

Since: cosmos-sdk 0.47

Path parameters
addressanyRequired

address is the account address string.

Responses
chevron-right
200

A successful response.

application/json

QueryAccountInfoResponse is the Query/AccountInfo response type.

Since: cosmos-sdk 0.47

get
/cosmos/auth/v1beta1/account_info/{address}

Accounts returns all the existing accounts.

get

When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.

Since: cosmos-sdk 0.43

Query parameters
pagination.keyanyOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetanyOptional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitanyOptional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalanyOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reverseanyOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
chevron-right
200

A successful response.

application/json

QueryAccountsResponse is the response type for the Query/Accounts RPC method.

Since: cosmos-sdk 0.43

get
/cosmos/auth/v1beta1/accounts

Account returns account details based on address.

get
Path parameters
addressanyRequired

address defines the address to query for.

Responses
chevron-right
200

A successful response.

application/json

QueryAccountResponse is the response type for the Query/Account RPC method.

get
/cosmos/auth/v1beta1/accounts/{address}

AccountAddressByID returns account address based on account number.

get

Since: cosmos-sdk 0.46.2

Path parameters
idanyRequired

Deprecated, use account_id instead

id is the account number of the address to be queried. This field should have been an uint64 (like all account numbers), and will be updated to uint64 in a future version of the auth query.

Query parameters
account_idanyOptional

account_id is the account number of the address to be queried.

Since: cosmos-sdk 0.47

Responses
chevron-right
200

A successful response.

application/json

Since: cosmos-sdk 0.46.2

account_addressstringOptional
get
/cosmos/auth/v1beta1/address_by_id/{id}

Bech32Prefix queries bech32Prefix

get

Since: cosmos-sdk 0.46

Responses
chevron-right
200

A successful response.

application/json

Bech32PrefixResponse is the response type for Bech32Prefix rpc method.

Since: cosmos-sdk 0.46

bech32_prefixstringOptional
get
/cosmos/auth/v1beta1/bech32

AddressBytesToString converts Account Address bytes to string

get

Since: cosmos-sdk 0.46

Path parameters
address_bytesanyRequired
Responses
chevron-right
200

A successful response.

application/json

AddressBytesToStringResponse is the response type for AddressString rpc method.

Since: cosmos-sdk 0.46

address_stringstringOptional
get
/cosmos/auth/v1beta1/bech32/{address_bytes}

AddressStringToBytes converts Address string to bytes

get

Since: cosmos-sdk 0.46

Path parameters
address_stringanyRequired
Responses
chevron-right
200

A successful response.

application/json

AddressStringToBytesResponse is the response type for AddressBytes rpc method.

Since: cosmos-sdk 0.46

address_bytesstring · byteOptional
get
/cosmos/auth/v1beta1/bech32/{address_string}

ModuleAccounts returns all the existing module accounts.

get

Since: cosmos-sdk 0.46

Responses
chevron-right
200

A successful response.

application/json

QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.

Since: cosmos-sdk 0.46

get
/cosmos/auth/v1beta1/module_accounts

ModuleAccountByName returns the module account info by module name

get
Path parameters
nameanyRequired
Responses
chevron-right
200

A successful response.

application/json

QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.

get
/cosmos/auth/v1beta1/module_accounts/{name}

Last updated