Generated from
cosmos/cosmos-sdk@2086680ff8b0 on ref release/v0.55.x.Queries
A node exposes only the services its application registers:- gRPC on port 9090
- REST on port 1317, if the method has an HTTP binding
grpcurl -plaintext localhost:9090 list to see what a node serves.
Queries are read-only and never pass through consensus. See Queries.
Replace <string> placeholders with real values and omit unused filters. Payloads use protobuf JSON, and some string fields accept enum constants listed under Types. Field tables give the encoding each value takes.
Examples assume a local node. For TLS endpoints, use port 443 and omit -plaintext. See gRPC services for reflection, address formats, and decimal encoding.
Delegation
Delegation queries delegate info for given validator delegator pair.
Request
QueryDelegationRequest:
Response
QueryDelegationResponse:
DelegatorDelegations
DelegatorDelegations queries all delegations of a given delegator address. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryDelegatorDelegationsRequest:
Response
QueryDelegatorDelegationsResponse:
DelegatorUnbondingDelegations
DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryDelegatorUnbondingDelegationsRequest:
Response
QueryDelegatorUnbondingDelegationsResponse:
DelegatorValidator
DelegatorValidator queries validator info for given delegator validator pair.
Request
QueryDelegatorValidatorRequest:
Response
QueryDelegatorValidatorResponse:
DelegatorValidators
DelegatorValidators queries all validators info for given delegator address. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryDelegatorValidatorsRequest:
Response
QueryDelegatorValidatorsResponse:
HistoricalInfo
HistoricalInfo queries the historical info for given height.
Request
QueryHistoricalInfoRequest:
Response
QueryHistoricalInfoResponse:
Params
Parameters queries the staking parameters.
Request
QueryParamsRequest:
This message has no fields.
Response QueryParamsResponse:
Pool
Pool queries the pool info.
Request
QueryPoolRequest:
This message has no fields.
Response QueryPoolResponse:
Redelegations
Redelegations queries redelegations of given address. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryRedelegationsRequest:
Response
QueryRedelegationsResponse:
UnbondingDelegation
UnbondingDelegation queries unbonding info for given validator delegator pair.
Request
QueryUnbondingDelegationRequest:
Response
QueryUnbondingDelegationResponse:
Validator
Validator queries validator info for given validator address.
Request
QueryValidatorRequest:
Response
QueryValidatorResponse:
ValidatorDelegations
ValidatorDelegations queries delegate info for given validator. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryValidatorDelegationsRequest:
Response
QueryValidatorDelegationsResponse:
Validators
Validators queries all validators that match the given status. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryValidatorsRequest:
Response
QueryValidatorsResponse:
ValidatorUnbondingDelegations
ValidatorUnbondingDelegations queries unbonding delegations of a validator. When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set.
Request
QueryValidatorUnbondingDelegationsRequest:
Response
QueryValidatorUnbondingDelegationsResponse:
Transaction messages
These messages are included in signed transactions, not called as endpoints. See Transactions for the execution model, and Sending transactions for the envelope they go into. Examples use CLI transaction JSON. Decimal fields use values such as"0.05", even when their proto type is bytes. The gRPC TxEncode method instead requires the scaled value "50000000000000000". See scalar encodings.
- Handler: Generated client method
- Signer: Account that must sign
- Amino name: Legacy identifier used by hardware wallets and other Amino signers
BeginRedelegate
BeginRedelegate defines a method for performing a redelegation of coins from a delegator and source validator to a destination validator.
In a transaction:
MsgBeginRedelegateResponse:
CancelUnbondingDelegation
CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation and delegate back to previous validator.
In a transaction:
MsgCancelUnbondingDelegationResponse:
This message has no fields.
CreateValidator
CreateValidator defines a method for creating a new validator.
In a transaction:
MsgCreateValidatorResponse:
This message has no fields.
Delegate
Delegate defines a method for performing a delegation of coins from a delegator to a validator.
In a transaction:
MsgDelegateResponse:
This message has no fields.
EditValidator
EditValidator defines a method for editing an existing validator.
In a transaction:
MsgEditValidatorResponse:
This message has no fields.
RotateConsPubKey
RotateConsPubKey defines an operation for rotating the consensus keys of a validator.
In a transaction:
MsgRotateConsPubKeyResponse:
This message has no fields.
Undelegate
Undelegate defines a method for performing an undelegation from a delegate and a validator.
In a transaction:
MsgUndelegateResponse:
UpdateParams
UpdateParams defines an operation for updating the x/staking module parameters.The signer is the governance module account, which no user holds a key for. This message executes only through a passed governance proposal, not as a transaction you submit directly.
In a transaction:
MsgUpdateParamsResponse:
This message has no fields.
Types
Messages referenced by the fields above. Protocol buffers version 3 has no required fields, so every field is optional on the wire, and a[] suffix marks a repeated field.
cosmos.base.query.v1beta1.PageRequest
PageRequest is to be embedded in gRPC request messages for efficient pagination. Ex:message SomeRequest { Foo some_parameter = 1; PageRequest pagination = 2; }
cosmos.base.query.v1beta1.PageResponse
PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
cosmos.base.v1beta1.Coin
Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.cosmos.staking.v1beta1.BondStatus
Written as a quoted string in JSON.cosmos.staking.v1beta1.Commission
Commission defines commission parameters for a given validator.cosmos.staking.v1beta1.CommissionRates
CommissionRates defines the initial commission rates to be used for creating a validator.cosmos.staking.v1beta1.Delegation
Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.cosmos.staking.v1beta1.DelegationResponse
DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.cosmos.staking.v1beta1.Description
Description defines a validator description.cosmos.staking.v1beta1.HistoricalInfo
HistoricalInfo contains header and validator information for a given block. It is stored as part of staking module’s state, which persists then most recent HistoricalInfo (n is set by the staking module’s historical_entries parameter).