api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 19 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) *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) 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
}

Jump to

Keyboard shortcuts

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