Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@matterlabs/hardhat-zksync-node
Advanced tools
Readme
zkSync Era Hardhat plugin to run the zkSync era-test-node locally.
Ensure you are using the correct version of the plugin with ethers:
For plugin version <1.0.0:
For plugin version ≥1.0.0:
To install hardhat-zksync-node plugin, run:
npm install -D @matterlabs/hardhat-zksync-node
or
yarn add -D @matterlabs/hardhat-zksync-node
yarn hardhat node-zksync
This command runs a local zkSync In-memory node by initiating a JSON-RPC server. It uses the provided or default configurations to set up and run the zkSync node, allowing for blockchain operations in a local environment. The command also handles tasks such as downloading the necessary JSON-RPC server binary if it's not already present.
🔧 Command | 📄 Description |
---|---|
--port | Port on which the server should listen. Defaults to 8011. |
--log | Log filter level. Accepted values are: error, warn, info, and debug. Defaults to info. |
--log-file-path | Path to the file where logs should be written. Defaults to era_test_node.log |
--cache | Type of cache to use. Accepted values are: none, disk, and memory. Defaults to disk. |
--cache-dir | Directory location for the disk cache. Defaults to .cache |
--reset-cache | Flag to reset the local disk cache. |
--show-calls | Determines which call debug information to show. Accepted values are: none, user, system, and all. Defaults to none. |
--show-storage-logs | Determines which storage logs to show. Accepted values are: none, read, write, and all. Defaults to none. |
--show-vm-details | Specifies the level of Virtual Machine (VM) details to show. Accepted values are: none and all. Defaults to none. |
--show-gas-details | Specifies the level of gas details to show. Accepted values are: none and all. Defaults to none. |
--resolve-hashes | When enabled, it makes the debug log more readable but might decrease performance. |
--dev-use-local-contracts | Flag to load locally compiled system contracts. Useful when making changes to system contracts or bootloader. |
---fork | Starts a local network that is a fork of another network. Accepted values are: testnet, mainnet, or a specific URL. |
--fork-block-number | Specifies the block height at which to fork. |
--replay-tx | Transaction hash to replay. |
Restrictions: The --replay-tx and --fork-block-number parameters cannot be specified simultaneously.
In addition to the hardhat-zksync-node, zkSync's Era website offers a variety of resources including:
Guides to get started: Learn how to start building on zkSync Era.
Hardhat zkSync Era plugins: Overview and guides for all Hardhat zkSync Era plugins.
Hyperscaling: Deep dive into hyperscaling on zkSync Era.
Contributions are always welcome! Feel free to open any issue or send a pull request.
Go to CONTRIBUTING.md to learn about steps and best practices for contributing to zkSync hardhat tooling base repository.
zkSync Era Discord server: for questions and feedback.
Follow zkSync Era on Twitter
FAQs
Hardhat plugin to run zkSync era-test-node locally
The npm package @matterlabs/hardhat-zksync-node receives a total of 7,732 weekly downloads. As such, @matterlabs/hardhat-zksync-node popularity was classified as popular.
We found that @matterlabs/hardhat-zksync-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.