api

package
v0.0.0-...-5d05a64 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastTransactionResponse

type BroadcastTransactionResponse struct {
	TransactionHash string `json:"transactionHash"`
}

type EVMCallResponse

type EVMCallResponse struct {
	Result string `json:"result"`
}

type GetEstimatedNetworkFeeResponse

type GetEstimatedNetworkFeeResponse struct {
	Fee string `json:"fee"`
}

type GetHeightResponse

type GetHeightResponse struct {
	Height uint64 `json:"height"`
}

type GetVersionResponse

type GetVersionResponse struct {
	Version string `json:"version"`
}

type PublicAPIServer

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

func NewPublicAPIServer

func NewPublicAPIServer(c *chain.Chain, registerAndBroadcastChan chan *messages.RegisterMessage) *PublicAPIServer

func (*PublicAPIServer) BroadcastStakeTx

func (p *PublicAPIServer) BroadcastStakeTx(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) BroadcastTransferTx

func (p *PublicAPIServer) BroadcastTransferTx(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) EVMCall

func (p *PublicAPIServer) EVMCall(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetAddressState

func (p *PublicAPIServer) GetAddressState(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetBalance

func (p *PublicAPIServer) GetBalance(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetBlockByHash

func (p *PublicAPIServer) GetBlockByHash(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetEstimatedNetworkFee

func (p *PublicAPIServer) GetEstimatedNetworkFee(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetHeight

func (p *PublicAPIServer) GetHeight(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetLastBlock

func (p *PublicAPIServer) GetLastBlock(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetNetworkStats

func (p *PublicAPIServer) GetNetworkStats(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) GetVersion

func (p *PublicAPIServer) GetVersion(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) RedirectToAPIDoc

func (p *PublicAPIServer) RedirectToAPIDoc(w http.ResponseWriter, r *http.Request)

func (*PublicAPIServer) Start

func (p *PublicAPIServer) Start()

type Response

type Response struct {
	Error        uint        `json:"error"`
	ErrorMessage string      `json:"errorMessage"`
	Data         interface{} `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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