api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressBalancesResponse added in v0.5.0

type AddressBalancesResponse struct {
	Platform client.Balance      `json:"P"`
	Exchance []client.AvmBalance `json:"X"`
}

type CBalanceResponse added in v0.5.0

type CBalanceResponse struct {
	Balance string   `json:"balance"`
	Height  *big.Int `json:"height"`
}

type Server

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

func NewServer

func NewServer(db *store.DB, rpc *client.Client, logger *logrus.Logger) *Server

func (*Server) Run

func (s *Server) Run(addr string) error

type StatusResponse added in v0.3.0

type StatusResponse struct {
	AppName     string     `json:"app_name"`
	AppVersion  string     `json:"app_version"`
	GitCommit   string     `json:"git_commit"`
	GoVersion   string     `json:"go_version"`
	SyncStatus  string     `json:"sync_status"`
	SyncTime    *time.Time `json:"sync_time"`
	NodeVersion string     `json:"node_version"`
	NetworkName string     `json:"network_name"`
}

type TxTraceResponse added in v0.6.0

type TxTraceResponse struct {
	Receipt *model.EvmReceipt `json:"receipt"`
	Logs    []model.EvmLog    `json:"logs"`
	Trace   *client.Call      `json:"trace"`
}

type ValidatorResponse added in v0.3.0

type ValidatorResponse struct {
	Validator   *model.Validator      `json:"validator"`
	Delegations []model.Delegation    `json:"delegations"`
	HourlyStats []model.ValidatorStat `json:"stats_24h"`
	DailyStats  []model.ValidatorStat `json:"stats_30d"`
}

Jump to

Keyboard shortcuts

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