call

package
v6.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package call aids in calling into smart contracts

Index

Constants

View Source
const (
	FindByName findMode = iota
	FindBySelector
)

Variables

View Source
var ErrAbiNotFound = errors.New("abi not found ")

Functions

func FindAbiFunction

func FindAbiFunction(mode findMode, identifier string, arguments []*parser.ContractArgument, abiMap *abi.SelectorSyncMap) (fn *types.Function, suggestions []string, err error)

FindAbiFunction returns either the function to call or a list of suggestions (function signatures with the same name, but different argument count)

Types

type ContractCall

type ContractCall struct {
	Conn        *rpc.Connection
	Address     base.Address
	Method      *types.Function
	Arguments   []any
	BlockNumber base.Blknum
	// contains filtered or unexported fields
}

func NewContractCall

func NewContractCall(conn *rpc.Connection, callAddress base.Address, theCall string) (*ContractCall, []string, error)

func NewContractCallWithAbi

func NewContractCallWithAbi(conn *rpc.Connection, callAddress base.Address, theCall string, abiMap *abi.SelectorSyncMap) (*ContractCall, []string, error)

func (*ContractCall) Call

func (call *ContractCall) Call(artFunc func(string, *types.Function) error) (results *types.Result, err error)

Jump to

Keyboard shortcuts

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