Class Contract<TContract>

Reusable extension of viem's contract interface to interact with smart contracts. Provides read and write functionality through the public and wallet clients.

TContract - The contract type which can be either IClearinghouse, ISeaport, or IERC20.

Type Parameters

Hierarchy (view full)

Constructors

Properties

address: `0x${string}`

Address of the smart contract.

contract: TContract
read: TContract["read"]

Read-only methods of the smart contract.

simulate: TContract["simulate"]

Simulated methods of the smart contract.

write?: TContract["write"]

State-changing methods of the smart contract. Present only if walletClient is provided.

Generated using TypeDoc