Documentation ¶
Index ¶
- type BroadcastTransactionResponse
- type EVMCallResponse
- type GetEstimatedNetworkFeeResponse
- type GetHeightResponse
- type GetVersionResponse
- type PublicAPIServer
- func (p *PublicAPIServer) BroadcastStakeTx(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) BroadcastTransferTx(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) EVMCall(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetAddressState(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetBalance(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetBlockByHash(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetEstimatedNetworkFee(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetHeight(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetLastBlock(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetNetworkStats(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) GetVersion(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) RedirectToAPIDoc(w http.ResponseWriter, r *http.Request)
- func (p *PublicAPIServer) Start()
- type Response
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()
Click to show internal directories.
Click to hide internal directories.