Skip to content
Testnet featureTestnet: yesMainnet: Not availableSoftware: Core bad4a06ea · protocol pqwerai-v8-testnet/1Updated

Core CLI and configuration flags

Extracted from the Core release for public testnet 20778 (pqwerai-v8-0.1.0-public-testnet (chain 20778), source a679d60a11e6). pqwerai-core is the node; pqwerai-cli is the command-line wallet and Smartnode tool (the Windows Wallet ships the equivalent pqwerai-wallet-cli).

Quoted Core help text

Flag descriptions are quoted from the Core source, with engine names shown as GhostFlow (parallel execution) and GhostTurbo (adaptive trust execution and shadow fast finality) and notes about earlier networks left out; flag names are unchanged. Where they say PQAI, the test-network unit is tPQAI. Chain 20778 is the current public testnet.

No rule or fork flags on chain 20778

Chain 20778 binds every former fork rule in its genesis profile (genesis 0xe7c41635…3db6): registry top-up, registry stage-surround, EIP-6780 and WASM locals metering at block 0, GhostShield v2 at block 0 with payment-assurance claims from block 1, and the IPFS storage reward from block 1. Nodes pass none of the HARD FORK node flags below; Core refuses a conflicting value. The genesis flags record how that genesis was cut; the help text of --ghostshield-claims-block predates the owner decision of 27 November 2026 that switched claims on from block 1.

pqwerai-core node flags

Flag Type Default Description
--datadir string — database directory (required)
--genesis string — private-testnet genesis.json (required)
--helper string — GhostRider hash helper path (required)
--helper-sha256 string — GhostRider hash helper SHA-256 (required)
--difficulty uint64 16 fixed private-testnet base difficulty; must match genesis
--port int 0 P2P TCP port (0 = random)
--p2p.addr string — P2P listener literal IP (empty = all interfaces; use 127.0.0.1 for isolated tests)
--rpc.addr string 127.0.0.1 JSON-RPC bind address
--rpc.port int 8545 JSON-RPC port
--rpc.token-file string — file containing a bearer token; REQUIRED for non-loopback RPC
--peers string — comma separated enode URLs to connect to
--mine bool false mine GhostRider blocks
--miner.threads int 1 local: parallel GhostRider helper processes used for mining (1..256; no consensus effect)
--miner.external bool false publish authenticated G1 jobs for an explicitly started external miner; requires --mine
--etherbase string — mining reward address
--pase-workers int 0 experimental GhostFlow workers (0 = canonical serial, the default)
--pase-general bool false experimental: GhostFlow also executes contract blocks with read/write-set speculation (needs -pase-workers; same result as serial)
--pase-profile string — general GhostFlow profile: plain (default) or cost-aware (a local cost model chooses serial or parallel per batch; merge preload; same result as serial; needs --pase-general)
--pate bool envBool("PATE_ENABLED") GhostTurbo adaptive trust scheduling for GhostFlow: node-local and advisory, consensus unchanged (needs --pase-workers and --pase-general; default from env PATE_ENABLED, off)
--ff.shadow bool envBool("FF_SHADOW") GhostTurbo phase 3 shadow fast finality: collect shadow checkpoint votes and report provisional ffg/fast-v1 finality (ff_* RPC); node-local measurement, consensus unchanged (needs the G4 registry; default from env FF_SHADOW, off)
--ff.interval uint64 8 shadow checkpoint interval in blocks (4, 8 or 16)
--ff.depth uint64 2 blocks on top of a shadow checkpoint before validators vote on it
--ff.sources string — comma separated node RPC URLs to pull shadow votes from (ff_votes)
--pate.state string — GhostTurbo trust-state snapshot file (default datadir/pqwerai-pate.json)
--g4-relayer-key string — secp256k1 key file of a funded disposable test account that relays finality certificates
--verbosity int 3 log level 0-5
--shutdown-on-stdin-close bool false managed process: stop gracefully when the parent closes stdin
--expect-genesis-hash string — refuse to start unless the genesis block hash equals this value
--maxpeers int 16 maximum P2P peers
--p2p.target int 8 keep at least this many peer connections when candidates exist (<= maxpeers)
--p2p.subnet-limit int 2 max connected peers per IPv4 /24 or IPv6 /48 (0 = off; loopback exempt; --peers never pruned)
--p2p.peer-cache bool true persist peers that completed the eth handshake on this chain (datadir/pqwerai-peers.json)
--seed-manifest string — comma separated signed seed manifest files (dial candidates only, no consensus authority)
--seed-manifest-keys string — comma separated trusted ed25519 seed-manifest public keys (hex)
--discovery bool false enable discv4 peer discovery seeded by --bootnodes
--bootnodes string — comma separated enode URLs used to seed discovery (no consensus privileges)
--nat string none NAT mapping: none|any|upnp|pmp|extip:
--rpc.logs-max-range uint64 5000 maximum block range of one eth_getLogs request
--rpc.allow-unprotected-txs bool false accept transactions without EIP-155 replay protection over RPC (only for submitting keyless canonical deployments such as Multicall3; block validation is unchanged)
--miner.gasceil uint64 0 block gas limit this miner targets (0 = keep the genesis gas limit)
--miner.ghostturbo-priority bool true local policy (GhostTurbo T2): order the transactions of GhostShield v2 GhostTurbo-eligible senders first (no fee or validity change; no consensus effect)
--miner.ghostturbo-reserve uint64 50 local policy: percent of each block's gas kept for ordinary transactions when GhostTurbo priority is on (0..100)
--miner.certificate-hold duration 8s local policy: max wait after a finality checkpoint for its certificate before sealing (0 = off)
--eip6780-block int64 -1 HARD FORK: activate EIP-6780 (SELFDESTRUCT only deletes contracts created in the same transaction) at this block; every node must use the same value (-1 = not scheduled)
--ghostpulse bool true GhostPulse local telemetry and health (ghostpulse_* RPC); advisory only, never affects consensus
--ghostpulse.interval duration 10s GhostPulse sampling interval (>= 1s)
--ghostpulse.metrics string — GhostPulse Prometheus endpoint address, e.g. 127.0.0.1:6061 (empty = off); serves /metrics and /healthz
--ghostshield-block int64 -1 REMOVED: ghostshield-guarantee/v1 was never activated on any network and has been deleted; GhostShield v2 is bound by the genesis profile. Any value other than -1 is refused
--registry-stage-surround-block int64 -1 HARD FORK registry-stage-surround/v1: from this block surround-vote slashing evidence must have one vote stage (closes G4-SLASHING-STAGE-BLIND-SURROUND); every node must use the same value (-1 = not scheduled); chain 20778 binds it in the genesis profile and refuses a conflicting value
--registry-topup-block int64 -1 HARD FORK registry-topup/v1: from this block a Smartnode top-up credits the validator stake (before it every top-up reverts); every node must use the same value (-1 = not scheduled); chain 20778 binds it in the genesis profile and refuses a conflicting value
--wasm-locals-metering-block int64 -1 HARD FORK wasm-vm/v1 locals metering (CR-0035): WASM contracts deployed from this block charge every declared local at function entry; inactive unless set; every node must use the same value (-1 = not scheduled); chain 20778 binds it in the genesis profile and refuses a conflicting value
--ipfs-reward-block int64 -1 HARD FORK ipfs-reward/v1: from this block 5% of each epoch's issuance goes to the IPFS reward pool, out of the PoW share (67/18/1/9/5); needs --ipfs-reward-pool and the 72/18/1/9 profile; every node must use the same values (-1 = not scheduled); refused on chain 20778 (genesis profile only)
--ipfs-reward-pool string — ipfs-reward/v1: IPFS storage reward pool contract address (with --ipfs-reward-block)
--ipfs-reward-redirect string — HARD FORK ipfs-reward/v2: :[,...] - from each block the IPFS share is credited to that pool (e.g. IPFSRewardPoolV2); share unchanged; needs --ipfs-reward-block; every node must use the same values; refused on chain 20778 and with a genesis-bound ipfs-reward
--finality-reanchor-block int64 -1 HARD FORK finality-reanchor/v1: the child of this checkpoint (a multiple of 32) re-justifies it when finality has halted below it, so validators can certify again; finalizes nothing by itself; needs the finality profile; every node must use the same value (-1 = not scheduled)

pqwerai-core genesis flags (network creation)

Flag Type Default Description
--helper string — GhostRider hash helper path
--helper-sha256 string — GhostRider hash helper SHA-256
--difficulty uint64 16 fixed private-testnet base difficulty
--out string genesis.json output file
--alloc string — comma separated 0xADDRESS=PQAI whole-coin test allocations
--validators string — JSON validator list; enables the private registry + FFG finality profile
--duty-window uint64 0 CANDIDATE liveness/v1: certificate duty-credit window in blocks (0 = legacy; consensus rule)
--wasm-block int64 -1 Official wasm-vm/v1: activation block (-1 = unscheduled; genesis-bound consensus rule; existing network schedules unchanged)
--pq-verify-block int64 -1 pq-verify/v1: ML-DSA-65/SLH-DSA verification precompile activation block (-1 = unscheduled; genesis-bound consensus rule; fixture 1337 any block)
--daa-easing bool false CANDIDATE daa/easing-v2: extra difficulty halving per further 8 s of block gap (consensus rule; registry profile)
--inactivity-epochs uint64 0 CANDIDATE liveness/v1: force-exit registry validators unseen for N checkpoints (0 = off; consensus rule)
--founder string — public founder address receiving 1% of new issuance; registry profile only
--reserve string — Quantum Reserve contract address receiving 9% of new issuance (72/18/1/9); requires --founder
--timestamp uint64 uint64(time.Now().Unix()-3600) genesis timestamp
--chain-id uint64 ethash.DevFixtureChainID private testnet chain ID (1337 disposable fixture, 20778 public testnet)
--gas-limit uint64 15000000 genesis block gas limit
--registry-topup-block int64 -1 genesis-bound registry-topup/v1 activation block (-1 = not bound; chain 20778 requires 0)
--registry-stage-surround-block int64 -1 genesis-bound registry-stage-surround/v1 activation block (-1 = not bound; chain 20778 requires 0)
--eip6780-block int64 -1 genesis-bound EIP-6780 activation block (-1 = not bound; chain 20778 requires 0)
--wasm-locals-metering-block int64 -1 genesis-bound wasm-vm/v1 locals metering (CR-0035) activation block (-1 = not bound; chain 20778 requires it equal to --wasm-block when WASM is enabled)
--ghostshield-block int64 -1 genesis-bound GhostShield v2 (ghostshield-guarantee/v2) with the owner-approved parameters: 0 = active from genesis (-1 = not bound; chain 20778 requires 0)
--ghostshield-claims-block int64 -1 GhostShield v2 payment-assurance claims activation block, >= 1 (-1 = claims disabled; needs --ghostshield-block; 20778 launches with claims disabled until the independent review)
--ipfs-reward-block int64 -1 genesis-bound ipfs-reward/v1 activation block, >= 1 (-1 = not bound; needs --ipfs-reward-pool)
--ipfs-reward-pool string — genesis-bound ipfs-reward/v1 pool contract address: the CREATE address of --ipfs-reward-pool-deployer at --ipfs-reward-pool-nonce
--ipfs-reward-pool-deployer string — account that will deploy the IPFS reward pool after genesis; the pool address must equal CREATE(deployer, nonce) (required on 20778)
--ipfs-reward-pool-nonce uint64 0 deployer nonce of the IPFS reward pool deployment transaction

pqwerai-cli global flags

Flag Type Default Description
-rpc string http://127.0.0.1:8545 (env PQWERAI_RPC) node JSON-RPC URL
-token-file string env PQWERAI_RPC_TOKEN_FILE RPC bearer token file
-keystore string pqwerai-keystore (env PQWERAI_KEYSTORE) keystore directory
-password-file string env PQWERAI_PASSWORD_FILE password file (else first stdin line)
-keyfile-password-file string — password file for the BFT key of sn-keygen/sn-register/sn-rotate (default: -password-file); keeps the account password out of a validator key handed to a signer host
-backup-password-file string env PQWERAI_BACKUP_PASSWORD_FILE backup passphrase file (encrypted backups)
-timeout duration 60s operation timeout

pqwerai-cli commands

backup balance call deploy erc20-balance erc20-transfer erc721-owner erc721-transfer history import-key list new nonce read restore send sn-claim sn-delegate sn-exit sn-keygen sn-register sn-rotate sn-slash sn-status sn-topup sn-undelegate sn-validators sn-withdraw status tx verify-backup

Transaction and Smartnode commands accept:

Flag Description
-from sender
-to recipient / contract
-amount PQAI (or token units for erc20)
-code contract creation bytecode hex file
-data calldata hex
-token token contract
-id token id or validator id
-keyfile BFT key file
-vote-a signed vote hex (sn-slash)
-vote-b signed vote hex (sn-slash)
-stake stake in PQAI
-owner owner
-encrypt seal the whole backup with the backup passphrase
-out output key file

Secrets

Pass passwords with -password-file (mode 0600) or stdin, never as arguments. Keep mining payout keys and validator keys off shared servers.


Sources at 83ff5b69f0 (project repository, not public yet): developers/data/core-release/pqwerai-core-main.go.txt · developers/data/core-release/pqwerai-cli-main.go.txt · developers/data/core-release/PROVENANCE.json

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