web3

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicAPI

type PublicAPI struct{}

PublicAPI is the web3_ prefixed set of APIs in the Web3 JSON-RPC spec.

func NewPublicAPI

func NewPublicAPI() *PublicAPI

NewPublicAPI creates an instance of the Web3 API.

func (*PublicAPI) ClientVersion

func (a *PublicAPI) ClientVersion() string

ClientVersion returns the client version in the Web3 user agent format.

func (*PublicAPI) Sha3

func (a *PublicAPI) Sha3(input string) hexutil.Bytes

Sha3 returns the keccak-256 hash of the passed-in input.

Jump to

Keyboard shortcuts

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