static

package
v0.0.0-...-d770b7a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallStaticWithMethod

func CallStaticWithMethod(client *ethclient.Client, opts *Opts, method abi.Method, args ...any) (results []any, err error)

CallStaticWithMethod callStaticWithName calls a function statically (not be mined into the blockchain) and returns its results. using 0 gas will allow infinite gas to be used

func CallStaticWithName

func CallStaticWithName(client *ethclient.Client, abi *abi.ABI, opts *Opts, methodName string, args ...any) (results []any, err error)

CallStaticWithName calls a function statically (not be mined into the blockchain) and returns its results. using 0 gas will allow infinite gas to be used

Types

type Opts

type Opts struct {
	From        common.Address
	To          common.Address
	Gas         uint64
	GasPrice    *big.Int
	GasFeeCap   *big.Int
	GasTipCap   *big.Int
	Value       *big.Int
	AccessLists types.AccessList
}

Opts call opts for static calls

Jump to

Keyboard shortcuts

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