Documentation ¶
Index ¶
- func ABCIInfoRPC(q *Query) (*coretypes.ResultABCIInfo, error)
- func ABCIQueryRPC(q *Query, path string, data string, prove bool) (*coretypes.ResultABCIQuery, error)
- func BlockByHashRPC(q *Query, hash string) (*coretypes.ResultBlock, error)
- func BlockRPC(q *Query) (*coretypes.ResultBlock, error)
- func BlockResultsRPC(q *Query) (*coretypes.ResultBlockResults, error)
- func StatusRPC(q *Query) (*coretypes.ResultStatus, error)
- func TxsRPC(q *Query, events []string) (*coretypes.ResultTxSearch, error)
- type Query
- func (q *Query) ABCIInfo() (*coretypes.ResultABCIInfo, error)
- func (q *Query) ABCIQuery(path string, data string, prove bool) (*coretypes.ResultABCIQuery, error)
- func (q *Query) Bank_Balance(address string, denom string) (*bankTypes.QueryBalanceResponse, error)
- func (q *Query) Bank_Balances(address string) (*bankTypes.QueryAllBalancesResponse, error)
- func (q *Query) Bank_DenomMetadata(denom string) (*bankTypes.QueryDenomMetadataResponse, error)
- func (q *Query) Bank_DenomsMetadata() (*bankTypes.QueryDenomsMetadataResponse, error)
- func (q *Query) Bank_Params() (*bankTypes.QueryParamsResponse, error)
- func (q *Query) Bank_SupplyOf(denom string) (*bankTypes.QuerySupplyOfResponse, error)
- func (q *Query) Bank_TotalSupply() (*bankTypes.QueryTotalSupplyResponse, error)
- func (q *Query) Block() (*coretypes.ResultBlock, error)
- func (q *Query) BlockByHash(hash string) (*coretypes.ResultBlock, error)
- func (q *Query) BlockResults() (*coretypes.ResultBlockResults, error)
- func (q *Query) Distribution_CommunityPool() (*distributionTypes.QueryCommunityPoolResponse, error)
- func (q *Query) Distribution_DelegationRewards(delegator string, validator string) (*distributionTypes.QueryDelegationRewardsResponse, error)
- func (q *Query) Distribution_DelegationTotalRewards(delegator string) (*distributionTypes.QueryDelegationTotalRewardsResponse, error)
- func (q *Query) Distribution_DelegatorValidators(delegator string) (*distributionTypes.QueryDelegatorValidatorsResponse, error)
- func (q *Query) Distribution_DelegatorWithdrawAddress(delegator string) (*distributionTypes.QueryDelegatorWithdrawAddressResponse, error)
- func (q *Query) Distribution_Params() (*distributionTypes.QueryParamsResponse, error)
- func (q *Query) Distribution_ValidatorCommission(validator string) (*distributionTypes.QueryValidatorCommissionResponse, error)
- func (q *Query) Distribution_ValidatorOutstandingRewards(validator string) (*distributionTypes.QueryValidatorOutstandingRewardsResponse, error)
- func (q *Query) Distribution_ValidatorSlashes(validator string, start uint64, end uint64) (*distributionTypes.QueryValidatorSlashesResponse, error)
- func (q *Query) GetQueryContext() (context.Context, context.CancelFunc)
- func (q *Query) Ibc_Channel(channelId string, portId string) (*channeltypes.QueryChannelResponse, error)
- func (q *Query) Ibc_Channels() (*channeltypes.QueryChannelsResponse, error)
- func (q *Query) Ibc_ClientParams() (*clienttypes.QueryClientParamsResponse, error)
- func (q *Query) Ibc_ClientState(clientId string) (*clienttypes.QueryClientStateResponse, error)
- func (q *Query) Ibc_ClientStates() (*clienttypes.QueryClientStatesResponse, error)
- func (q *Query) Ibc_Connection(connectionId string) (*connectiontypes.QueryConnectionResponse, error)
- func (q *Query) Ibc_Connections() (*connectiontypes.QueryConnectionsResponse, error)
- func (q *Query) Ibc_ConsensusState(clientId string, height clienttypes.Height) (*clienttypes.QueryConsensusStateResponse, error)
- func (q *Query) Ibc_ConsensusStates(clientId string) (*clienttypes.QueryConsensusStatesResponse, error)
- func (q *Query) Staking_Delegation(delegator string, validator string) (*stakingTypes.QueryDelegationResponse, error)
- func (q *Query) Staking_DelegatorDelegations(delegator string) (*stakingTypes.QueryDelegatorDelegationsResponse, error)
- func (q *Query) Staking_DelegatorUnbondingDelegations(delegator string) (*stakingTypes.QueryDelegatorUnbondingDelegationsResponse, error)
- func (q *Query) Staking_DelegatorValidator(delegator string, validator string) (*stakingTypes.QueryDelegatorValidatorResponse, error)
- func (q *Query) Staking_DelegatorValidators(delegator string) (*stakingTypes.QueryDelegatorValidatorsResponse, error)
- func (q *Query) Staking_HistoricalInfo(height int64) (*stakingTypes.QueryHistoricalInfoResponse, error)
- func (q *Query) Staking_Params() (*stakingTypes.QueryParamsResponse, error)
- func (q *Query) Staking_Pool() (*stakingTypes.QueryPoolResponse, error)
- func (q *Query) Staking_Redelegations(delegator string, src_validator string, dst_validator string) (*stakingTypes.QueryRedelegationsResponse, error)
- func (q *Query) Staking_UnbondingDelegation(delegator string, validator string) (*stakingTypes.QueryUnbondingDelegationResponse, error)
- func (q *Query) Staking_Validator(address string) (*stakingTypes.QueryValidatorResponse, error)
- func (q *Query) Staking_ValidatorDelegations(validator string) (*stakingTypes.QueryValidatorDelegationsResponse, error)
- func (q *Query) Staking_ValidatorUnbondingDelegations(validator string) (*stakingTypes.QueryValidatorUnbondingDelegationsResponse, error)
- func (q *Query) Staking_Validators(status string) (*stakingTypes.QueryValidatorsResponse, error)
- func (q *Query) Status() (*coretypes.ResultStatus, error)
- type QueryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ABCIInfoRPC ¶
func ABCIInfoRPC(q *Query) (*coretypes.ResultABCIInfo, error)
ABCIInfoRPC returns information about the ABCI application
func ABCIQueryRPC ¶
func ABCIQueryRPC(q *Query, path string, data string, prove bool) (*coretypes.ResultABCIQuery, error)
ABCIQueryRPC returns data from a particular path in the ABCI application
func BlockByHashRPC ¶
func BlockByHashRPC(q *Query, hash string) (*coretypes.ResultBlock, error)
BlockByHashRPC returns information about a block by hash
func BlockRPC ¶
func BlockRPC(q *Query) (*coretypes.ResultBlock, error)
BlockRPC returns information about a block
func BlockResultsRPC ¶
func BlockResultsRPC(q *Query) (*coretypes.ResultBlockResults, error)
BlockResultsRPC returns information about a block by hash
Types ¶
type Query ¶
type Query struct { Client *client.ChainClient Options *QueryOptions }
func (*Query) ABCIInfo ¶
func (q *Query) ABCIInfo() (*coretypes.ResultABCIInfo, error)
ABCIInfo returns general information about the ABCI application
func (*Query) Bank_Balance ¶
Balances returns the balance of specific denom for a single account.
func (*Query) Bank_Balances ¶
func (q *Query) Bank_Balances(address string) (*bankTypes.QueryAllBalancesResponse, error)
Balances returns the balance of all coins for a single account.
func (*Query) Bank_DenomMetadata ¶
func (q *Query) Bank_DenomMetadata(denom string) (*bankTypes.QueryDenomMetadataResponse, error)
DenomMetadata returns the metadata for given denoms
func (*Query) Bank_DenomsMetadata ¶
func (q *Query) Bank_DenomsMetadata() (*bankTypes.QueryDenomsMetadataResponse, error)
DenomsMetadata returns the metadata for all denoms
func (*Query) Bank_Params ¶
func (q *Query) Bank_Params() (*bankTypes.QueryParamsResponse, error)
Return params for bank module.
func (*Query) Bank_SupplyOf ¶
func (q *Query) Bank_SupplyOf(denom string) (*bankTypes.QuerySupplyOfResponse, error)
SupplyOf returns the supply of given coin
func (*Query) Bank_TotalSupply ¶
func (q *Query) Bank_TotalSupply() (*bankTypes.QueryTotalSupplyResponse, error)
TotalSupply returns the supply of all coins
func (*Query) Block ¶
func (q *Query) Block() (*coretypes.ResultBlock, error)
Block returns information about a block
func (*Query) BlockByHash ¶
func (q *Query) BlockByHash(hash string) (*coretypes.ResultBlock, error)
BlockByHash returns information about a block by hash
func (*Query) BlockResults ¶
func (q *Query) BlockResults() (*coretypes.ResultBlockResults, error)
BlockResults returns information about a block by hash
func (*Query) Distribution_CommunityPool ¶
func (q *Query) Distribution_CommunityPool() (*distributionTypes.QueryCommunityPoolResponse, error)
Return balance of community pool.
func (*Query) Distribution_DelegationRewards ¶
func (q *Query) Distribution_DelegationRewards(delegator string, validator string) (*distributionTypes.QueryDelegationRewardsResponse, error)
DelegationRewards returns the validators of a delegator
func (*Query) Distribution_DelegationTotalRewards ¶
func (q *Query) Distribution_DelegationTotalRewards(delegator string) (*distributionTypes.QueryDelegationTotalRewardsResponse, error)
DelegationTotalRewards returns the validators of a delegator
func (*Query) Distribution_DelegatorValidators ¶
func (q *Query) Distribution_DelegatorValidators(delegator string) (*distributionTypes.QueryDelegatorValidatorsResponse, error)
DelegatorValidators returns the validators of a delegator
func (*Query) Distribution_DelegatorWithdrawAddress ¶
func (q *Query) Distribution_DelegatorWithdrawAddress(delegator string) (*distributionTypes.QueryDelegatorWithdrawAddressResponse, error)
DelegatorWithdrawAddress returns the validators of a delegator
func (*Query) Distribution_Params ¶
func (q *Query) Distribution_Params() (*distributionTypes.QueryParamsResponse, error)
Return params for staking module.
func (*Query) Distribution_ValidatorCommission ¶
func (q *Query) Distribution_ValidatorCommission(validator string) (*distributionTypes.QueryValidatorCommissionResponse, error)
ValidatorCommission returns the outstanding commission for given validator
func (*Query) Distribution_ValidatorOutstandingRewards ¶
func (q *Query) Distribution_ValidatorOutstandingRewards(validator string) (*distributionTypes.QueryValidatorOutstandingRewardsResponse, error)
ValidatorOutstandingRewards returns the outstanding reward pool for given validator
func (*Query) Distribution_ValidatorSlashes ¶
func (q *Query) Distribution_ValidatorSlashes(validator string, start uint64, end uint64) (*distributionTypes.QueryValidatorSlashesResponse, error)
ValidatorSlashes returns slashing events for given validator between the optional start and end height
func (*Query) GetQueryContext ¶
func (q *Query) GetQueryContext() (context.Context, context.CancelFunc)
GetQueryContext returns a context that includes the height and uses the timeout from the config
func (*Query) Ibc_Channel ¶ added in v0.5.0
func (q *Query) Ibc_Channel(channelId string, portId string) (*channeltypes.QueryChannelResponse, error)
Ibc_Channel returns the channel state for the specified IBC channel and port.
func (*Query) Ibc_Channels ¶ added in v0.5.0
func (q *Query) Ibc_Channels() (*channeltypes.QueryChannelsResponse, error)
Ibc_Channels returns the channel state for all IBC channels.
func (*Query) Ibc_ClientParams ¶ added in v0.5.0
func (q *Query) Ibc_ClientParams() (*clienttypes.QueryClientParamsResponse, error)
IBCQuery returns parameters for the IBC client submodule.
func (*Query) Ibc_ClientState ¶ added in v0.5.0
func (q *Query) Ibc_ClientState(clientId string) (*clienttypes.QueryClientStateResponse, error)
Ibc_ClientState returns the client state for the specified IBC client.
func (*Query) Ibc_ClientStates ¶ added in v0.5.0
func (q *Query) Ibc_ClientStates() (*clienttypes.QueryClientStatesResponse, error)
Ibc_ClientStates returns the client state for all IBC clients.
func (*Query) Ibc_Connection ¶ added in v0.5.0
func (q *Query) Ibc_Connection(connectionId string) (*connectiontypes.QueryConnectionResponse, error)
Ibc_Connection returns the connection state for the specified IBC connection.
func (*Query) Ibc_Connections ¶ added in v0.5.0
func (q *Query) Ibc_Connections() (*connectiontypes.QueryConnectionsResponse, error)
Ibc_Connections returns the connection state for all IBC connections.
func (*Query) Ibc_ConsensusState ¶ added in v0.5.0
func (q *Query) Ibc_ConsensusState(clientId string, height clienttypes.Height) (*clienttypes.QueryConsensusStateResponse, error)
Ibc_ConsensusState returns the consensus state for the specified IBC client and the given height.
func (*Query) Ibc_ConsensusStates ¶ added in v0.5.0
func (q *Query) Ibc_ConsensusStates(clientId string) (*clienttypes.QueryConsensusStatesResponse, error)
Ibc_ConsensusState returns all consensus states for the specified IBC client.
func (*Query) Staking_Delegation ¶
func (q *Query) Staking_Delegation(delegator string, validator string) (*stakingTypes.QueryDelegationResponse, error)
Delegation returns the delegations for a particular validator / delegator tuple
func (*Query) Staking_DelegatorDelegations ¶
func (q *Query) Staking_DelegatorDelegations(delegator string) (*stakingTypes.QueryDelegatorDelegationsResponse, error)
DelegatorDelegations returns all the delegations for a given delegator
func (*Query) Staking_DelegatorUnbondingDelegations ¶
func (q *Query) Staking_DelegatorUnbondingDelegations(delegator string) (*stakingTypes.QueryDelegatorUnbondingDelegationsResponse, error)
Delegations returns all the unbonding delegations for a given delegator
func (*Query) Staking_DelegatorValidator ¶
func (q *Query) Staking_DelegatorValidator(delegator string, validator string) (*stakingTypes.QueryDelegatorValidatorResponse, error)
DelegatorValidators returns the validator for a given delegator / validator tuple
func (*Query) Staking_DelegatorValidators ¶
func (q *Query) Staking_DelegatorValidators(delegator string) (*stakingTypes.QueryDelegatorValidatorsResponse, error)
DelegatorValidators returns all the validators for a given delegator
func (*Query) Staking_HistoricalInfo ¶
func (q *Query) Staking_HistoricalInfo(height int64) (*stakingTypes.QueryHistoricalInfoResponse, error)
HistoricalInfoRPC return histrical info for a given height
func (*Query) Staking_Params ¶
func (q *Query) Staking_Params() (*stakingTypes.QueryParamsResponse, error)
Return params for staking module.
func (*Query) Staking_Pool ¶
func (q *Query) Staking_Pool() (*stakingTypes.QueryPoolResponse, error)
Return balance of staking pool.
func (*Query) Staking_Redelegations ¶
func (q *Query) Staking_Redelegations(delegator string, src_validator string, dst_validator string) (*stakingTypes.QueryRedelegationsResponse, error)
Delegation returns the delegations for a particular validator / delegator tuple
func (*Query) Staking_UnbondingDelegation ¶
func (q *Query) Staking_UnbondingDelegation(delegator string, validator string) (*stakingTypes.QueryUnbondingDelegationResponse, error)
UnbondingDelegation returns the unbonding delegations for a particular validator / delegator tuple
func (*Query) Staking_Validator ¶
func (q *Query) Staking_Validator(address string) (*stakingTypes.QueryValidatorResponse, error)
Return specified validator.
func (*Query) Staking_ValidatorDelegations ¶
func (q *Query) Staking_ValidatorDelegations(validator string) (*stakingTypes.QueryValidatorDelegationsResponse, error)
ValidatorDelegations returns all the delegations for a validator
func (*Query) Staking_ValidatorUnbondingDelegations ¶
func (q *Query) Staking_ValidatorUnbondingDelegations(validator string) (*stakingTypes.QueryValidatorUnbondingDelegationsResponse, error)
ValidatorDelegations returns all the unbonding delegations for a validator
func (*Query) Staking_Validators ¶
func (q *Query) Staking_Validators(status string) (*stakingTypes.QueryValidatorsResponse, error)
Return validators for given status.
type QueryOptions ¶
type QueryOptions struct { Pagination *query.PageRequest Height int64 }
func DefaultOptions ¶
func DefaultOptions() *QueryOptions