be

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API is the Block Explorer JSON-RPC.

func NewBeAPI

func NewBeAPI(
	ctx *server.Context,
	backend backend.BackendI,
) *API

NewBeAPI creates an instance of the Block Explorer API.

func (*API) Echo

func (api *API) Echo(text string) string

func (*API) GetAccount

func (api *API) GetAccount(accountAddressStr string) (berpctypes.GenericBackendResponse, error)

func (*API) GetAccountBalances

func (api *API) GetAccountBalances(accountAddressStr string, denom *string) (berpctypes.GenericBackendResponse, error)

func (*API) GetBlockByNumber

func (api *API) GetBlockByNumber(height int64) (berpctypes.GenericBackendResponse, error)

func (*API) GetChainInfo

func (api *API) GetChainInfo() (berpctypes.GenericBackendResponse, error)

func (*API) GetDenomMetadata

func (api *API) GetDenomMetadata(base string) (berpctypes.GenericBackendResponse, error)

func (*API) GetDenomsMetadata

func (api *API) GetDenomsMetadata(pageNoOptional *int) (berpctypes.GenericBackendResponse, error)

func (*API) GetGovProposal

func (api *API) GetGovProposal(proposal uint64) (berpctypes.GenericBackendResponse, error)

func (*API) GetGovProposals

func (api *API) GetGovProposals(pageNoOptional *int) (berpctypes.GenericBackendResponse, error)

func (*API) GetLatestBlockNumber added in v1.0.3

func (api *API) GetLatestBlockNumber() (berpctypes.GenericBackendResponse, error)

func (*API) GetModuleParams

func (api *API) GetModuleParams(moduleName string) (berpctypes.GenericBackendResponse, error)

func (*API) GetRecentBlocks added in v1.2.0

func (api *API) GetRecentBlocks(pageNoOptional, pageSizeOptional *int) (berpctypes.GenericBackendResponse, error)

func (*API) GetStakingInfo

func (api *API) GetStakingInfo(delegatorAddr string) (berpctypes.GenericBackendResponse, error)

func (*API) GetTotalSupply

func (api *API) GetTotalSupply(pageNoOptional *int) (berpctypes.GenericBackendResponse, error)

func (*API) GetTransactionByHash

func (api *API) GetTransactionByHash(hash string) (berpctypes.GenericBackendResponse, error)

func (*API) GetTransactionsInBlockRange

func (api *API) GetTransactionsInBlockRange(fromHeightIncluded int64, toHeightIncluded *int64) (berpctypes.GenericBackendResponse, error)

func (*API) GetValidatorAccount

func (api *API) GetValidatorAccount(consOrValAddr string) (berpctypes.GenericBackendResponse, error)

func (*API) GetValidators

func (api *API) GetValidators() (berpctypes.GenericBackendResponse, error)

Jump to

Keyboard shortcuts

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