handlers

package
Version: v0.0.0-...-ad2c5a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(w http.ResponseWriter, r *http.Request)

GetAccount returns the account descriptor for the given account.

func GetAddressFromPublicKey

func GetAddressFromPublicKey(w http.ResponseWriter, r *http.Request)

GetAddressFromPublicKey returns a staking address from a given public key

func GetAddresses

func GetAddresses(w http.ResponseWriter, r *http.Request)

GetAddresses returns IDs of all accounts with non-zero general balance

func GetBlock

func GetBlock(w http.ResponseWriter, r *http.Request)

GetBlock returns consensus block at specific height.

func GetBlockHeader

func GetBlockHeader(w http.ResponseWriter, r *http.Request)

GetBlockHeader returns consensus block header at specific height

func GetBlockLastCommit

func GetBlockLastCommit(w http.ResponseWriter, r *http.Request)

GetBlockLastCommit returns consensus block last commit at specific height

func GetCommittees

func GetCommittees(w http.ResponseWriter, r *http.Request)

GetCommittees returns vector of committees for given runtime ID, at specified block height, and optional callback for querying beacon for given epoch/block height.

func GetCommonPool

func GetCommonPool(w http.ResponseWriter, r *http.Request)

GetCommonPool returns common pool balance at block height

func GetConnections

func GetConnections(w http.ResponseWriter, r *http.Request)

GetConnections retrieves the node names that are configured in the API

func GetConsensusParameters

func GetConsensusParameters(w http.ResponseWriter, r *http.Request)

GetConsensusParameters returns the staking consensus parameters.

func GetConsensusStateToGenesis

func GetConsensusStateToGenesis(w http.ResponseWriter, r *http.Request)

GetConsensusStateToGenesis returns genesis state at specified block height for Consensus.

func GetDebondingDelegations

func GetDebondingDelegations(w http.ResponseWriter, r *http.Request)

GetDebondingDelegations returns list of debonding delegations for given owner (delegator).

func GetDelegations

func GetDelegations(w http.ResponseWriter, r *http.Request)

GetDelegations returns list of delegations for given owner

func GetEntities

func GetEntities(w http.ResponseWriter, r *http.Request)

GetEntities returns all registered entities

func GetEntity

func GetEntity(w http.ResponseWriter, r *http.Request)

GetEntity returns information with regards to single entity

func GetEpoch

func GetEpoch(w http.ResponseWriter, r *http.Request)

GetEpoch returns current epoch of given block height

func GetEvents

func GetEvents(w http.ResponseWriter, r *http.Request)

GetEvents returns events at a specific height.

func GetGenesisDocument

func GetGenesisDocument(w http.ResponseWriter, r *http.Request)

GetGenesisDocument returns the original genesis document.

func GetIsSynced

func GetIsSynced(w http.ResponseWriter, r *http.Request)

GetIsSynced checks whether node has finished syncing.

func GetLastBlockFees

func GetLastBlockFees(w http.ResponseWriter, r *http.Request)

GetLastBlockFees returns the collected fees for previous block.

func GetNode

func GetNode(w http.ResponseWriter, r *http.Request)

GetNode returns information with regards to single entity

func GetNodeStatus

func GetNodeStatus(w http.ResponseWriter, r *http.Request)

GetNodeStatus returns eturns a node's status.

func GetNodes

func GetNodes(w http.ResponseWriter, r *http.Request)

GetNodes returns all registered nodes at specific block height

func GetRegistryEvents

func GetRegistryEvents(w http.ResponseWriter, r *http.Request)

GetRegistryEvents returns the events at specified block height.

func GetRegistryStateToGenesis

func GetRegistryStateToGenesis(w http.ResponseWriter, r *http.Request)

GetRegistryStateToGenesis returns StateToGenesis at the specified block height for Registry.

func GetRuntime

func GetRuntime(w http.ResponseWriter, r *http.Request)

GetRuntime returns information with regards to single entity

func GetRuntimes

func GetRuntimes(w http.ResponseWriter, r *http.Request)

GetRuntimes returns all runtimes at specific block height

func GetSchedulerStateToGenesis

func GetSchedulerStateToGenesis(w http.ResponseWriter, r *http.Request)

GetSchedulerStateToGenesis returns genesis state of scheduler at the specified block height.

func GetSentryAddresses

func GetSentryAddresses(w http.ResponseWriter, r *http.Request)

GetSentryAddresses returns list of consensus and committee addresses of sentry node.

func GetStakingStateToGenesis

func GetStakingStateToGenesis(w http.ResponseWriter, r *http.Request)

GetStakingStateToGenesis returns state of genesis file of staking client

func GetStatus

func GetStatus(w http.ResponseWriter, r *http.Request)

GetStatus returns the current status overview.

func GetThreshold

func GetThreshold(w http.ResponseWriter, r *http.Request)

GetThreshold returns specific staking threshold by kind.

func GetTotalSupply

func GetTotalSupply(w http.ResponseWriter, r *http.Request)

GetTotalSupply returns total supply at block height

func GetTransactions

func GetTransactions(w http.ResponseWriter, r *http.Request)

GetTransactions returns consensus block header at specific height

func GetValidators

func GetValidators(w http.ResponseWriter, r *http.Request)

GetValidators returns vector of consensus validators for given epoch.

func NodeExporterQueryCounter

func NodeExporterQueryCounter(w http.ResponseWriter, r *http.Request)

NodeExporterQueryCounter to retrieve exporter data.

func NodeExporterQueryGauge

func NodeExporterQueryGauge(w http.ResponseWriter, r *http.Request)

NodeExporterQueryGauge to retrieve exporter data.

func PingNode

func PingNode(w http.ResponseWriter, r *http.Request)

PingNode returns consensus block at specific height thus signifying that it was pinged.

func Pong

func Pong(w http.ResponseWriter, r *http.Request)

Pong responds with ping if entire API is online

func PrometheusQueryCounter

func PrometheusQueryCounter(w http.ResponseWriter, r *http.Request)

PrometheusQueryCounter to retrieve prometheus data.

func PrometheusQueryGauge

func PrometheusQueryGauge(w http.ResponseWriter, r *http.Request)

PrometheusQueryGauge to retrieve prometheus data.

func PublicKeyToAddress

func PublicKeyToAddress(w http.ResponseWriter, r *http.Request)

PublicKeyToAddress accepts a Consensus Public Key and respond with crypto.address which is used to match consensus public keys with Tendermint Addresses

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL