multicall

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Multicallv2abiABI = `` /* 1545-byte string literal not displayed */

Variables

View Source
var (
	ErrEmptyResponse = errors.New("empty response")
)

Functions

This section is empty.

Types

type CallData

type CallData struct {
	To         string `json:"to"`
	Data       string `json:"data"`
	MethodName string `json:"methodName,omitempty"`
	Gas        uint64 `json:"-"`
}

func BuildCallData

func BuildCallData(to common.Address, data []byte, gas uint64, opts ...string) (r CallData)

type Client

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

func NewMulticall

func NewMulticall(client *ethclient.Client, chainId uint64) (*Client, error)

func (Client) Execute

func (m Client) Execute(ctx context.Context, callData []CallData) ([][]byte, error)

Jump to

Keyboard shortcuts

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