Skip to content
Testnet featureTestnet: configuration only (not executed)Mainnet: Not availableSoftware: Core bad4a06ea · protocol pqwerai-v8-testnet/1Updated

Hardhat

Not executed for this release

This configuration is derived from the verified chain parameters but was not run (Hardhat was not installed on the test machine). Report problems with the link at the bottom of the page.

hardhat.config.ts
import type { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";

const config: HardhatUserConfig = {
  solidity: {
    version: "0.8.26",
    settings: { evmVersion: "cancun", optimizer: { enabled: true, runs: 200 }, metadata: { bytecodeHash: "none" } },
  },
  networks: {
    pqwerai: {
      url: process.env.PQWERAI_RPC ?? "http://127.0.0.1:8545",
      chainId: 20778,
      accounts: process.env.DEPLOYER_KEY ? [process.env.DEPLOYER_KEY] : [], // prefer a hardware wallet or keystore plugin
    },
  },
};
export default config;
npx hardhat compile
npx hardhat run scripts/deploy.ts --network pqwerai
  • Do not commit private keys or .env files; never reuse a mainnet key.
  • Hardhat's "finalized" helpers do not understand PQWERAI finality; check g4_status (finality).
  • npx hardhat verify does not work: the explorer's Etherscan-compatible API serves lookups (customChains entry for chain 20778 on that page) but not source verification. Use byte-for-byte verification.

Sources at 83ff5b69f0 (project repository, not public yet): testnet/release/network/network.json

Found a problem? Report a documentation issue · Build testnet-20778+83ff5b69f0