Categorygithub.com/rodert/w3pro
modulepackage
0.0.0-20230925020606-fc77d8896912
Repository: https://github.com/rodert/w3pro.git
Documentation: pkg.go.dev

# README

中文作者 JavaPub

实现了一个极快且模块化的以太坊 JSON RPC 客户端,支持一流的 ABI 。

中文 | English | にほんご

w3pro

Support mainstream Ethereum ABI calls, quickly master web3

支持主流以太坊ABI调用,快速掌握web3。

申明

免费提供,请保留出处。

来源:JavaPub

# Packages

No description provided by the author
Package rpctest provides utilities for testing RPC methods.
Package w3protypes implements common types.

# Functions

A returns an address from a hexstring or panics if the hexstring does not represent a valid checksum encoded address.
APtr returns an address pointer from a hexstring or panics if the hexstring does not represent a valid checksum encoded address.
B returns a byte slice from a hexstring or panics if the hexstring does not represent a valid byte slice.
Dial returns a new Client connected to the URL rawurl.
FromWei returns the given Wei as decimal with the given number of decimals.
H returns a hash from a hexstring or panics if the hexstring does not represent a valid hash.
I returns a [big.Int] from a hexstring or decimal number string (with optional unit) or panics if the parsing fails.
MustDial is like [Dial] but panics if the connection establishment fails.
MustNewEvent is like [NewEvent] but panics if the signature parsing fails.
MustNewFunc is like [NewFunc] but panics if the signature or returns parsing fails.
NewClient returns a new Client given an rpc.Client client.
NewEvent returns a new Smart Contract event log decoder from the given Solidity event signature.
NewFunc returns a new Smart Contract function ABI binding from the given Solidity function signature and its returns.
RandA returns a random address.
WithRateLimiter sets the rate limiter for the client.

# Variables

Common [big.Int]'s.
Common [big.Int]'s.
Common [big.Int]'s.
Common [big.Int]'s.
Common [big.Int]'s.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Client represents a connection to an RPC endpoint.
Event represents a Smart Contract event decoder.
Func represents a Smart Contract function ABI binding.

# Type aliases

CallErrors is an error type that contains the errors of multiple calls.
An Option configures a Client.