Option to create custom node startup #6472
Labels
hardhat-3-alpha
Feedback about the Hardhat 3 Alpha
status:needs-decision
We need to make a decision about this
Feedback
For my project, I want to have a custom way to create a Hardhat node that is instrumented with my own logic instead of the Hardhat one (specifically, we want opentelemetry support)
What worked in Hardhat v2
In hardhat v2, this was possible with either:
TASK_NODE_CREATE_SERVER
(as mentioned hereimport { JsonRpcServer } from "hardhat/internal/hardhat-network/jsonrpc/server.js";
Why it doesn't work in Hardhat v3
In Hardhat v3, this is not possible:
node
which not only does too much for my use-case, it also has no return typeimport { JsonRpcServer } from "hardhat/internal/builtin-plugins/node/json-rpc/server.ts";
doesn't work because the path is not publicly exportedI can copy-paste the contents as-is, but that's not ideal since this folder also depends on
builtin-plugins/network-manager
as wellThe text was updated successfully, but these errors were encountered: