GovV1Params
Params queries all parameters of the gov module.
Path Parameters
params_type defines which parameters to query for, can be one of "voting", "tallying" or "deposit".
- 200
- default
A successful response.
Schema
- Array [
- ]
- Array [
- ]
voting_params object
Deprecated: Prefer to use params
instead.
voting_params defines the parameters related to voting.
Duration of the voting period.
deposit_params object
Deprecated: Prefer to use params
instead.
deposit_params defines the parameters related to deposit.
min_deposit object[]
Minimum deposit for a proposal to enter voting period.
Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months.
tally_params object
Deprecated: Prefer to use params
instead.
tally_params defines the parameters related to tally.
Minimum percentage of total stake needed to vote for a result to be considered valid.
Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
Minimum value of Veto votes to Total votes ratio for proposal to be vetoed. Default value: 1/3.
params object
params defines all the paramaters of x/gov module.
Since: cosmos-sdk 0.47
min_deposit object[]
Minimum deposit for a proposal to enter voting period.
Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months.
Duration of the voting period.
Minimum percentage of total stake needed to vote for a result to be considered valid.
Minimum proportion of Yes votes for proposal to pass. Default value: 0.5.
Minimum value of Veto votes to Total votes ratio for proposal to be vetoed. Default value: 1/3.
The ratio representing the proportion of the deposit value that must be paid at proposal submission.
{
"voting_params": {
"voting_period": "string"
},
"deposit_params": {
"min_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"max_deposit_period": "string"
},
"tally_params": {
"quorum": "string",
"threshold": "string",
"veto_threshold": "string"
},
"params": {
"min_deposit": [
{
"denom": "string",
"amount": "string"
}
],
"max_deposit_period": "string",
"voting_period": "string",
"quorum": "string",
"threshold": "string",
"veto_threshold": "string",
"min_initial_deposit_ratio": "string",
"burn_vote_quorum": true,
"burn_proposal_deposit_prevote": true,
"burn_vote_veto": true
}
}
An unexpected error response.
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
Must be a valid serialized protocol buffer of the above specified type.
{
"error": "string",
"code": 0,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}