Socket
Book a DemoInstallSign in
Socket

@parity/hardhat-polkadot-node

Package Overview
Dependencies
Maintainers
12
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parity/hardhat-polkadot-node

Polkadot [Hardhat](https://hardhat.org/) plugin to run a mock in-memory node.

0.1.6-pre1
latest
Source
npmnpm
Version published
Weekly downloads
1.5K
-16%
Maintainers
12
Weekly downloads
 
Created
Source

hardhat-polkadot-node

Polkadot Hardhat plugin to run a mock in-memory node.

Compatibility

  • Not compatible with hardhat-only helpers, such as time and loadFixture from @nomicfoundation/hardhat-toolbox/network-helpers

Installation

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

Configuration

  • Import the package in the hardhat.config file:
...
import "@parity/hardhat-polkadot-node";
...
  • Configure a PolkaVM-compatible node and eth-rpc in hardhat.config according to available options.

Usage

From hardhat.config

See Examples.

From the CLI

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-portPort on which the server should listen. Defaults to 8000. It is also where the adapter will connect to when using the binaries.
--node-binary-pathPath to the substrate node binary.
--adapter-binary-pathPath to the eth-rpc-adapter binary.
--adapter-portPort on which the adapter will listen to. Defaults to 8545.
--devWhether to run the fork in dev mode. Defaults to false.
--build-block-modeBuild block mode for chopsticks.
--forkEndpoint of the chain to fork.
--fork-block-numberBlock hash or block number from where to fork.

Happy building! 👷‍♀️👷‍♂️

FAQs

Package last updated on 20 Aug 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.