Contract() is a factory function that returns a type-safe contract instance. It is not a Context.Tag service—instead it depends on ProviderService (and optionally SignerService for writes).
Quick Start
Read
View/pure functions viaeth_call. No wallet required.
Write
State-changing functions. RequiresSignerService.
Simulate
Test writes without sending.Events
Type Safety
Types inferred from ABI:Request Configuration
Use Effect-native helpers for per-request timeout and retry:Error Handling
Full Example
Complete workflow with writes:See Also
- Contract Registry — Pre-configured contracts as a named map
- Explorer Contracts — Create contracts from address when ABI is unknown
- Contract Interactions Example — Complete examples
- Provider Service —
readContractandmulticall - Signer Service — Transaction signing for writes
- ERC Standards — ERC-20, ERC-721, ERC-1155 utilities
- Event Streaming — Real-time event watching
- Voltaire ABI — ABI encoding/decoding

