api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 23 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
}

func NewAPI

func NewAPI(s *state.State, systemIdentifier types.SystemID, gasUnitPrice *big.Int, blockGasLimit uint64, log *slog.Logger) *API

func (*API) Balance

func (a *API) Balance(w http.ResponseWriter, r *http.Request)

func (*API) CallEVM

func (a *API) CallEVM(w http.ResponseWriter, r *http.Request)

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) Register

func (a *API) Register(r *mux.Router)

func (*API) TransactionCount

func (a *API) TransactionCount(w http.ResponseWriter, r *http.Request)

type CallEVMRequest

type CallEVMRequest struct {
	From  []byte
	To    []byte
	Data  []byte
	Value *big.Int
	Gas   uint64
	// contains filtered or unexported fields
}

type CallEVMResponse

type CallEVMResponse struct {
	ProcessingDetails *evm.ProcessingDetails
	// contains filtered or unexported fields
}

type EstimateGasResponse

type EstimateGasResponse struct {
	GasUsed uint64
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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