Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractCaller ¶
type ContractCaller struct {
// contains filtered or unexported fields
}
func NewContractCaller ¶
func NewContractCaller(c RPCClient) *ContractCaller
func (*ContractCaller) CallContract ¶
func (cc *ContractCaller) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract executes a message call transaction, which is directly executed in the VM of the node, but never mined into the blockchain.
blockNumber selects the block height at which the call runs. It can be nil, in which case the code is taken from the latest known block. Note that state from very old blocks might not be available.
Click to show internal directories.
Click to hide internal directories.