cosmos/auth
Table of Contents
cosmos/auth/v1beta1/query.proto
TopQueryAccountRequest
QueryAccountRequest is the request type for the Query/Account RPC method.
Field | Type | Label | Description |
address | string | address defines the address to query for. |
QueryAccountResponse
QueryAccountResponse is the response type for the Query/Account RPC method.
Field | Type | Label | Description |
account | google.protobuf.Any | account defines the account of the corresponding address. |
QueryAccountsRequest
QueryAccountsRequest is the request type for the Query/Accounts RPC method.
Since: cosmos-sdk 0.43
Field | Type | Label | Description |
pagination | cosmos.base.query.v1beta1.PageRequest | pagination defines an optional pagination for the request. |
QueryAccountsResponse
QueryAccountsResponse is the response type for the Query/Accounts RPC method.
Since: cosmos-sdk 0.43
Field | Type | Label | Description |
accounts | google.protobuf.Any | repeated | accounts are the existing accounts |
pagination | cosmos.base.query.v1beta1.PageResponse | pagination defines the pagination in the response. |
QueryParamsRequest
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse
QueryParamsResponse is the response type for the Query/Params RPC method.
Field | Type | Label | Description |
params | Params | params defines the parameters of the module. |
Query
Query defines the gRPC querier service.
Method Name | Request Type | Response Type | Description |
Accounts | QueryAccountsRequest | QueryAccountsResponse | Accounts returns all the existing accounts Since: cosmos-sdk 0.43 |
Account | QueryAccountRequest | QueryAccountResponse | Account returns account details based on address. |
Params | QueryParamsRequest | QueryParamsResponse | Params queries all parameters. |
Methods with HTTP bindings
Method Name | Method | Pattern | Body |
Accounts | GET | /cosmos/auth/v1beta1/accounts | |
Account | GET | /cosmos/auth/v1beta1/accounts/{address} | |
Params | GET | /cosmos/auth/v1beta1/params |
cosmos/auth/v1beta1/genesis.proto
TopGenesisState
GenesisState defines the auth module's genesis state.
Field | Type | Label | Description |
params | Params | params defines all the paramaters of the module. |
|
accounts | google.protobuf.Any | repeated | accounts are the accounts present at genesis. |
cosmos/auth/v1beta1/auth.proto
TopBaseAccount
BaseAccount defines a base account type. It contains all the necessary fields
for basic account functionality. Any custom account type should extend this
type for additional functionality (e.g. vesting).
Field | Type | Label | Description |
address | string |
|
|
pub_key | google.protobuf.Any |
|
|
account_number | uint64 |
|
|
sequence | uint64 |
|
ModuleAccount
ModuleAccount defines an account for modules that holds coins on a pool.
Field | Type | Label | Description |
base_account | BaseAccount |
|
|
name | string |
|
|
permissions | string | repeated |
|
Params
Params defines the parameters for the auth module.
Field | Type | Label | Description |
max_memo_characters | uint64 |
|
|
tx_sig_limit | uint64 |
|
|
tx_size_cost_per_byte | uint64 |
|
|
sig_verify_cost_ed25519 | uint64 |
|
|
sig_verify_cost_secp256k1 | uint64 |
|
Scalar Value Types
.proto Type | Notes | Python Type |
double | float | |
float | float | |
int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int |
int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int/long |
uint32 | Uses variable-length encoding. | int/long |
uint64 | Uses variable-length encoding. | int/long |
sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int |
sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int/long |
fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | int |
fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | int/long |
sfixed32 | Always four bytes. | int |
sfixed64 | Always eight bytes. | int/long |
bool | boolean | |
string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | str/unicode |
bytes | May contain any arbitrary sequence of bytes. | str |