Contract Interaction

A Contract object is an abstraction of a contract (EVM bytecode) deployed on the Ethereum network. It allows for a simple way to serialize calls and transactions to an on-chain contract and deserialize their results and emitted logs.

A ContractFactory is an abstraction of a contract's bytecode and facilitates deploying a contract.

Contract
Creating Instances
Properties
Methods
Events
Meta-Class
ContractFactory
Creating Instances
Properties
Methods
Example: ERC-20 Contract
Deploying a Contract
Connecting to a Contract
Properties
Methods
Events
Meta-Class Methods
Meta-Class Filters