
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@parity/hardhat-polkadot-node
Advanced tools
Polkadot [Hardhat](https://hardhat.org/) plugin to run a mock in-memory node.
Polkadot Hardhat plugin to run a mock in-memory node.
time
and loadFixture
from @nomicfoundation/hardhat-toolbox/network-helpers
Using npm:
$ npm install -D @parity/hardhat-polkadot-node
Using yarn:
$ yarn add -D @parity/hardhat-polkadot-node
Using pnpm:
$ pnpm add -D @parity/hardhat-polkadot-node
hardhat.config
file:...
import "@parity/hardhat-polkadot-node";
...
hardhat.config
according to available options.hardhat.config
See Examples.
Run a local Polkadot from a binary and initializes a JSON-RPC server.
$ npx hardhat node
\ --node-binary-path /path/to/node
\ --adapter-binary-path /path/to/adapter
Run a fork of a live Polkadot chain and initializes a JSON-RPC.
$ npx hardhat node --fork https://testnet-passet-hub.polkadot.io
\ --adapter-binary-path /path/to/adapter
🔧 Command | 📄 Description |
---|---|
--rpc-port | Port on which the server should listen. Defaults to 8000. It is also where the adapter will connect to when using the binaries. |
--node-binary-path | Path to the substrate node binary. |
--adapter-binary-path | Path to the eth-rpc-adapter binary. |
--adapter-port | Port on which the adapter will listen to. Defaults to 8545. |
--dev | Whether to run the fork in dev mode. Defaults to false. |
--build-block-mode | Build block mode for chopsticks. |
--fork | Endpoint of the chain to fork. |
--fork-block-number | Block hash or block number from where to fork. |
FAQs
Polkadot [Hardhat](https://hardhat.org/) plugin to run a mock in-memory node.
We found that @parity/hardhat-polkadot-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.