Skip to main content

Troubleshooting

Common issues and how to resolve them.

Validation fails with a compatibility error​

The RDK enforces the compatibility matrix before anything is submitted. The most common mismatches:

  • based settlement with a non-based sequencer. Based settlement requires the based sequencer mode. Set both to based (or start from the gaming / enterprise preset).
  • A proof system that does not match the settlement. optimistic → fraud, zk → snark (stark is paused), based / sovereign → none. A new optimistic rollup also needs executionVm: "qledger-v1" and sequencing: "based".

Inspect the specific problems without throwing:

const result = config.validationResult();
console.log(result.valid);
console.log(result.errors); // each mismatch as a message
console.log(result.warnings);

A Celestia warning on validation​

Selecting celestia (or both) DA produces a non-fatal warning because the backend is not yet active. The configuration is otherwise valid. For live submission today, switch da to native. If you intend to submit, guard the path with assertDaBackendAvailable, which throws a clear error for not-yet-active backends. See Data availability.

assertDaBackendAvailable throws​

This is expected for celestia and both — they are planned but not yet active. Use native for anything you run on the network now.

Connection or read errors​

createRdkClient() defaults to localhost endpoints. If reads time out or refuse the connection, you are likely pointing at localhost without a local node. Pass explicit endpoints for your target network:

const rdk = createRdkClient({
endpoints: {
rest: "https://api-testnet.qore.host",
rpc: "https://rpc-testnet.qore.host",
evmRpc: "https://evm-testnet.qore.host",
},
});

"No signing key found" when creating or submitting​

Signing operations need an OfflineSigner. The simplest path is to set one of the signing environment variables and let the kit build the signer:

export QORE_OPERATOR_PRIVATE_KEY_HEX=0x... # raw hex key (takes priority)
# or:
export QORE_MNEMONIC="word word word ..." # BIP-39 mnemonic

With qorollup, you can also pass --key <hex> or --mnemonic <words>, which override the environment. In code, signerFromEnv() reads the same variables and returns undefined when neither is set.

Or build a signer yourself from a raw key or mnemonic:

import { DirectSecp256k1Wallet } from "@cosmjs/proto-signing";
import { fromHex } from "@cosmjs/encoding";

const signer = await DirectSecp256k1Wallet.fromKey(
fromHex(process.env.QORE_OPERATOR_PRIVATE_KEY_HEX!.replace(/^0x/, "")),
"qor",
);

Then connect with await rdk.connectTx(signer). On a network that requires the post-quantum signature (mainnet qorechain-vladi and testnet qorechain-diana), also pass a pqcKeypair so the client signs hybrid: await rdk.connectTx(signer, { gasPrice: "0.15uqor", pqcKeypair }). See Keys & funding.

"Balance too low" / "Balance covers stake + fees" fails in doctor​

The operator account does not hold enough to commit the stake plus a fee buffer. Fund it before creating a rollup:

  • Testnet — request funds from a faucet. The network publishes no fixed faucet endpoint, so set QORE_FAUCET_URL (or --faucet-url) and run qorollup faucet qor1youraddress.... Without a URL, transfer from another funded account.
  • Mainnet — there is no faucet; fund from an exchange or another account you control.

Preview the exact figures with estimateCreationCost against the live params. See Keys & funding and Stake & burn.

"REST endpoint unreachable" / reads time out​

The kit defaults to localhost endpoints. If doctor reports the REST check as failed, or reads hang, you are pointing at localhost without a local node. Set the REST endpoint for your target network:

export QORE_REST_URL=https://api-testnet.qore.host

Or pass --rest <url> to qorollup, or endpoints.rest to createRdkClient. For signing you will also need QORE_RPC_URL (the consensus RPC).

"Config invalid" before create​

create and doctor validate the rollup config against the compatibility matrix before anything is submitted. The errors name the exact mismatch — typically a settlement/sequencer pairing or a settlement/proof pairing that is not allowed. Fix the offending field (or start from a preset that satisfies the matrix), then re-run. Inspect without throwing:

const result = config.validationResult();
console.log(result.errors); // each mismatch as a message
console.log(result.warnings);

"Celestia DA not active" (planned)​

Selecting celestia (or both) data availability is planned but not yet active. Validation produces a non-fatal warning, and assertDaBackendAvailable throws for these backends. Use native DA for anything you run on the network today. See Data availability.

Insufficient funds on rollup creation​

Creating a rollup commits a stake and burns a percentage on creation. Confirm the operator account holds at least the live minStakeForRollup (plus fees). Preview the exact figures with estimateCreationCost against the live params — see Stake & burn.

A stake amount is required to build a create message​

toCreateMsg needs a stake. Pass it explicitly (using the live minimum is a safe choice):

const params = await rdk.params();
const createMsg = config.toCreateMsg(account.address, {
stakeAmount: params.minStakeForRollup,
});

A batch will not finalize​

Finalization depends on the settlement paradigm:

  • Optimistic — a batch finalizes only after the challenge window closes. Check the window with isChallengeWindowClosed and the live defaultChallengeWindow.
  • ZK — finalization is gated by on-chain proof verification. Confirm the batch carried a valid proof in the encoding the network's verifier expects.

See Lifecycles.

A rollup action is rejected​

Rollup transitions are state-dependent. You cannot resume an active rollup or pause a stopped one. Check first:

import { canPerformRollupAction } from "@qorechain/rdk";
canPerformRollupAction("pause", currentStatus);

See Lifecycles for the legal transitions.

The API reference is missing​

The TypeDoc API reference is generated, not committed. Produce it with:

cd docs
npm run docs:api