Documentation
¶
Index ¶
- func WriteCBORError(w http.ResponseWriter, e error, code int, log *slog.Logger)
- func WriteCBORResponse(w http.ResponseWriter, response any, statusCode int, log *slog.Logger)
- type API
- func (a *API) Balance(w http.ResponseWriter, r *http.Request)
- func (a *API) CallEVM(w http.ResponseWriter, r *http.Request)
- func (a *API) EstimateGas(w http.ResponseWriter, r *http.Request)
- func (a *API) GasPrice(w http.ResponseWriter, _ *http.Request)
- func (a *API) Register(r *mux.Router)
- func (a *API) TransactionCount(w http.ResponseWriter, r *http.Request)
- type EstimateGasResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteCBORError ¶
WriteCBORError replies to the request with the specified error message and HTTP code. It does not otherwise end the request; the caller should ensure no further writes are done to w.
func WriteCBORResponse ¶
WriteCBORResponse replies to the request with the given response and HTTP code.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) EstimateGas ¶
func (a *API) EstimateGas(w http.ResponseWriter, r *http.Request)
func (*API) GasPrice ¶
func (a *API) GasPrice(w http.ResponseWriter, _ *http.Request)
GasPrice - returns static gas unit price. When gas price becomes dynamic a new approach is needed
func (*API) TransactionCount ¶
func (a *API) TransactionCount(w http.ResponseWriter, r *http.Request)
type EstimateGasResponse ¶
type EstimateGasResponse struct { GasUsed uint64 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.