evm

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DymEvmBlockExplorerNamespace = "evm"

	ApiVersion = "1.0"
)

RPC namespaces and API version

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API is the EVM Block Explorer JSON-RPC.

func NewEvmBeAPI

func NewEvmBeAPI(
	ctx *server.Context,
	backend ieberpcbackend.EvmBackendI,
) *API

NewEvmBeAPI creates an instance of the EVM Block Explorer API.

func (*API) Echo

func (api *API) Echo(text string) string

func (*API) GetErc20Balance

func (api *API) GetErc20Balance(accountAddress common.Address, contractAddresses []common.Address) (berpctypes.GenericBackendResponse, error)

func (*API) GetErc20ContractInfo

func (api *API) GetErc20ContractInfo(contractAddress common.Address) (berpctypes.GenericBackendResponse, error)

Jump to

Keyboard shortcuts

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