Local blockchain node management for testing with OnchainTestKit
LocalNodeManager
is a core utility of the @coinbase/onchaintestkit
package, providing robust, programmatic control over local Ethereum (Anvil) nodes for end-to-end blockchain application testing. It is designed for seamless integration with Playwright and supports advanced scenarios such as parallel test execution, dynamic port allocation, chain state manipulation, and account impersonation.
LocalNodeManager
abstracts away the complexity of managing Anvil nodes, enabling reliable, reproducible, and scalable test environments for dApps, smart contracts, and wallet integrations.
Dynamic Port Allocation
Chain State Management
Account Control
Fork Mode Support
Playwright Integration