api

package
v0.4.7-rc5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetAPI

type NetAPI interface {
	PeerCount() hexutil.Uint
	Listening() bool
	Version() string
}

NetAPI is the collection of net RPC API methods.

func NewNetAPI

func NewNetAPI(b NetBackend) NetAPI

NewNetAPI creates a new net API instance.

type NetBackend

type NetBackend interface {
	NetAPI
}

NetBackend is the collection of methods required to satisfy the net RPC API.

type Web3API

type Web3API interface {
	ClientVersion() string
	Sha3(input hexutil.Bytes) hexutil.Bytes
}

Web3API is the collection of net RPC API methods.

type Web3Backend

type Web3Backend interface {
	ClientVersion() string
}

Web3Backend is the collection of methods required to satisfy the net RPC API.

func NewWeb3API

func NewWeb3API(b Web3Backend) Web3Backend

NewWeb3API creates a new web3 API instance.

Jump to

Keyboard shortcuts

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