# Technical Questions

**URL:** https://forum.midnight.network/c/technical-questions/5.md

[Latest](https://forum.midnight.network/latest.md) · [Categories](https://forum.midnight.network/categories.md) · [Tags](https://forum.midnight.network/tags.md)

---

## [About the Technical Questions category](https://forum.midnight.network/t/about-the-technical-questions-category/11)

<div class="topic-metadata">

**Author:** [@lolocoding](https://forum.midnight.network/u/lolocoding)\
**Replies:** 0\
**Last updated:** [May 12, 2025, 4:09pm UTC](https://forum.midnight.network/t/about-the-technical-questions-category/11 "2025-05-12T16:09:58Z")

</div>

Got a technical question? You’re in the right place. Whether you’re building with Midnight, exploring Compact, or debugging something tricky, this is where developers help each other out. Ask questions, share solutions, …

---

## [Understanding DUST Sponsorship: how Midnight solves the "new wallet, zero fees" problem](https://forum.midnight.network/t/understanding-dust-sponsorship-how-midnight-solves-the-new-wallet-zero-fees-problem/1356)

<div class="topic-metadata">

**Author:** [@8pro](https://forum.midnight.network/u/8pro)\
**Replies:** 1\
**Last updated:** [October 2, 2026, 10:30am UTC](https://forum.midnight.network/t/understanding-dust-sponsorship-how-midnight-solves-the-new-wallet-zero-fees-problem/1356 "2026-10-02T10:30:04Z")

</div>

If you’ve started building on Midnight, you’ve probably already run into this: a freshly generated wallet holds no NIGHT, which means it generates no DUST, which means it literally cannot submit a transaction, not even a…

---

## [Error 500 Yoroi redemption / internal server error](https://forum.midnight.network/t/error-500-yoroi-redemption-internal-server-error/1023)

<div class="topic-metadata">

**Author:** [@qualle](https://forum.midnight.network/u/qualle)\
**Replies:** 1\
**Last updated:** [September 19, 2026, 5:50pm UTC](https://forum.midnight.network/t/error-500-yoroi-redemption-internal-server-error/1023 "2026-09-19T17:50:52Z")

</div>

Trying to redeem Midnight in yoroi/ledger. Always getting : Building the redemption transaction error returned from Midnight API: Internal Server Error When trying in midnight.gd (app or address), always says same, e…

---

## [A gap in contract-owned shielded coin handling: no documented way to get the real mtIndex (plus a couple of related notes)](https://forum.midnight.network/t/a-gap-in-contract-owned-shielded-coin-handling-no-documented-way-to-get-the-real-mtindex-plus-a-couple-of-related-notes/1338)

<div class="topic-metadata">

**Author:** [@ekacin](https://forum.midnight.network/u/ekacin)\
**Replies:** 0\
**Last updated:** [September 10, 2026, 10:48am UTC](https://forum.midnight.network/t/a-gap-in-contract-owned-shielded-coin-handling-no-documented-way-to-get-the-real-mtindex-plus-a-couple-of-related-notes/1338 "2026-09-10T10:48:05Z")

</div>

Context We’ve been building UBLP’s Incoterms Escrow module ( UBLP/modules/incoterms-escrow at main · ekacin/UBLP · GitHub ) — a Compact contract that holds shielded NIGHT in escrow for trade deals (buyer locks funds, an…

---

## [Create-mn-app Hello World scaffold: cascading version errors on local devnet deploy (compact-js/ledger-v9)](https://forum.midnight.network/t/create-mn-app-hello-world-scaffold-cascading-version-errors-on-local-devnet-deploy-compact-js-ledger-v9/1335)

<div class="topic-metadata">

**Author:** [@spiffamani](https://forum.midnight.network/u/spiffamani)\
**Replies:** 1\
**Last updated:** [September 9, 2026, 7:43am UTC](https://forum.midnight.network/t/create-mn-app-hello-world-scaffold-cascading-version-errors-on-local-devnet-deploy-compact-js-ledger-v9/1335 "2026-09-09T07:43:40Z")

</div>

Hi all — hitting a chain of dependency issues trying to deploy the default Hello World template from create-mn-app@0.5.1 to the local devnet. Posting the full error sequence in case others are hitting the same thing, sin…

---

## [DUST balance not increasing despite active generation rate](https://forum.midnight.network/t/dust-balance-not-increasing-despite-active-generation-rate/1330)

<div class="topic-metadata">

**Author:** [@SalsActual](https://forum.midnight.network/u/SalsActual)\
**Replies:** 1\
**Last updated:** [August 31, 2026, 3:58pm UTC](https://forum.midnight.network/t/dust-balance-not-increasing-despite-active-generation-rate/1330 "2026-08-31T15:58:38Z")

</div>

What are you trying to do? Generate DUST from my NIGHT balance using the official DUST Generator. What’s not working or unclear? The generator shows everything connected and generation active, but my DUST balance appe…

---

## [What I learned about private membership in Compact (and 2 problems it created)](https://forum.midnight.network/t/what-i-learned-about-private-membership-in-compact-and-2-problems-it-created/1282)

<div class="topic-metadata">

**Author:** [@uetto.sec](https://forum.midnight.network/u/uetto.sec)\
**Replies:** 5\
**Last updated:** [August 8, 2026, 10:51pm UTC](https://forum.midnight.network/t/what-i-learned-about-private-membership-in-compact-and-2-problems-it-created/1282 "2026-08-08T22:51:51Z")

</div>

Sharing something that changed how I build on Midnight, plus where I got stuck afterwards. The lesson: I was using a Set to check whether someone was on an approved list. Seemed obvious. It is wrong. A Set reveals which…

---

## [Username change request](https://forum.midnight.network/t/username-change-request/1269)

<div class="topic-metadata">

**Author:** [@ShokhibulBurh4n](https://forum.midnight.network/u/ShokhibulBurh4n)\
**Replies:** 4\
**Last updated:** [July 13, 2026, 8:32am UTC](https://forum.midnight.network/t/username-change-request/1269 "2026-07-13T08:32:54Z")

</div>

Hi there, I’m happy to be a part of the Midnight Network community! I’m writing to ask if it is possible to change my current username. I would really like to update it to ShokhibulBurh4n Please let me know if there i…

---

## [Custom error 170 on preprod public RPC with ledger-v8 8.0.3, but 8.1.0 deploys fine — version requirement or RPC-specific?](https://forum.midnight.network/t/custom-error-170-on-preprod-public-rpc-with-ledger-v8-8-0-3-but-8-1-0-deploys-fine-version-requirement-or-rpc-specific/1238)

<div class="topic-metadata">

**Author:** [@takuya](https://forum.midnight.network/u/takuya)\
**Replies:** 8\
**Last updated:** [June 15, 2026, 3:22am UTC](https://forum.midnight.network/t/custom-error-170-on-preprod-public-rpc-with-ledger-v8-8-0-3-but-8-1-0-deploys-fine-version-requirement-or-rpc-specific/1238 "2026-06-15T03:22:38Z")

</div>

Hi — a question about contract deploy on preprod vs the ledger version requirement. Setup: a contract built with @midnight-ntwrk/ledger-v8 8.0.3 (compact toolchain 0.30.0, language 0.22.0, midnight-js 4.0.4) deploys fin…

---

## [Factory pattern for tracking deployed contracts, best practice on Midnight?](https://forum.midnight.network/t/factory-pattern-for-tracking-deployed-contracts-best-practice-on-midnight/1176)

<div class="topic-metadata">

**Author:** [@8pro](https://forum.midnight.network/u/8pro)\
**Replies:** 2\
**Last updated:** [June 10, 2026, 6:46am UTC](https://forum.midnight.network/t/factory-pattern-for-tracking-deployed-contracts-best-practice-on-midnight/1176 "2026-06-10T06:46:16Z")

</div>

Hey everyone :waving\_hand: I’m building a ticketing dApp where each event is its own deployed contract (using the event-tickets.compact pattern, one contract per event, no shared state between them). On Ethereum we’d t…

---

## [Block limit exceeded (1010) when deploying contracts with many circuits](https://forum.midnight.network/t/block-limit-exceeded-1010-when-deploying-contracts-with-many-circuits/1025)

<div class="topic-metadata">

**Author:** [@norm](https://forum.midnight.network/u/norm)\
**Replies:** 1\
**Last updated:** [June 9, 2026, 3:31pm UTC](https://forum.midnight.network/t/block-limit-exceeded-1010-when-deploying-contracts-with-many-circuits/1025 "2026-06-09T15:31:23Z")

</div>

A developer in #dev-chat is hitting “1010: Transaction would exhaust the block limits” when deploying a contract with many circuits on undeployed. What’s happening: The node computes transaction cost across 5 dimension…

---

## [Docs typo: Preprod proof-server URL \`lace-proof-pub.preprod.midnight.network\` returns NXDOMAIN](https://forum.midnight.network/t/docs-typo-preprod-proof-server-url-lace-proof-pub-preprod-midnight-network-returns-nxdomain/1200)

<div class="topic-metadata">

**Author:** [@takuya](https://forum.midnight.network/u/takuya)\
**Replies:** 3\
**Last updated:** [June 4, 2026, 10:37pm UTC](https://forum.midnight.network/t/docs-typo-preprod-proof-server-url-lace-proof-pub-preprod-midnight-network-returns-nxdomain/1200 "2026-06-04T22:37:58Z")

</div>

markdown Hi team — just a quick documentation correction report. ## Issue The official environments docs page lists this URL for the Preprod proof server: \> https://docs.midnight.network/relnotes/network | Service |…

---

## [Mainnet contract deploy: 100% rejection with Substrate \`1016 Immediately Dropped\` despite empty pool, sufficient DUST, and 100× fee bump](https://forum.midnight.network/t/mainnet-contract-deploy-100-rejection-with-substrate-1016-immediately-dropped-despite-empty-pool-sufficient-dust-and-100x-fee-bump/1190)

<div class="topic-metadata">

**Author:** [@takuya](https://forum.midnight.network/u/takuya)\
**Replies:** 5\
**Last updated:** [June 1, 2026, 8:32pm UTC](https://forum.midnight.network/t/mainnet-contract-deploy-100-rejection-with-substrate-1016-immediately-dropped-despite-empty-pool-sufficient-dust-and-100x-fee-bump/1190 "2026-06-01T20:32:30Z")

</div>

Hi all — sharing a deterministic Mainnet deploy failure to see if anyone else hits the same wall, and to ask the core team for a node-side log lookup. ## Symptom Compact contract deploy on Mainnet fails at submit with:…

---

## [ZKP compliance for 42 CFR Part 2 — substance use treatment privacy](https://forum.midnight.network/t/zkp-compliance-for-42-cfr-part-2-substance-use-treatment-privacy/1218)

<div class="topic-metadata">

**Author:** [@DR.Ecovery](https://forum.midnight.network/u/DR.Ecovery)\
**Replies:** 7\
**Last updated:** [May 31, 2026, 2:40pm UTC](https://forum.midnight.network/t/zkp-compliance-for-42-cfr-part-2-substance-use-treatment-privacy/1218 "2026-05-31T14:40:35Z")

</div>

I’m building a check-in app for a drug recovery drop-in center using Midnight’s ZKP technology. 42 CFR Part 2 is a federal law that protects substance use treatment records — even stricter than HIPAA. It means you can’t…

---

## [Mainnet: DUST not generating — indexer returns HRP mismatch error on unshielded address](https://forum.midnight.network/t/mainnet-dust-not-generating-indexer-returns-hrp-mismatch-error-on-unshielded-address/1209)

<div class="topic-metadata">

**Author:** [@1491sc](https://forum.midnight.network/u/1491sc)\
**Replies:** 3\
**Last updated:** [May 20, 2026, 2:39am UTC](https://forum.midnight.network/t/mainnet-dust-not-generating-indexer-returns-hrp-mismatch-error-on-unshielded-address/1209 "2026-05-20T02:39:50Z")

</div>

Hi — reporting a Mainnet blocker that has kept us stuck for several weeks. Symptom: Wallet sync on Mainnet fails with a GraphQL error from the indexer: invalid address: cannot bech32m-decode unshielded address: expected…

---

## [Preprod indexer ~23h behind chain — wallet ctime stuck at stale block.timestamp causes Custom error 171 (OutOfDustValidityWindow) for all submissions](https://forum.midnight.network/t/preprod-indexer-23h-behind-chain-wallet-ctime-stuck-at-stale-block-timestamp-causes-custom-error-171-outofdustvaliditywindow-for-all-submissions/1230)

<div class="topic-metadata">

**Author:** [@takuya](https://forum.midnight.network/u/takuya)\
**Replies:** 3\
**Last updated:** [May 18, 2026, 5:35pm UTC](https://forum.midnight.network/t/preprod-indexer-23h-behind-chain-wallet-ctime-stuck-at-stale-block-timestamp-causes-custom-error-171-outofdustvaliditywindow-for-all-submissions/1230 "2026-05-18T17:35:41Z")

</div>

What we observed indexer.preprod.midnight.network is currently ~23 hours behind the chain. This causes all dust spend transactions to fail with Custom error 171 (OutOfDustValidityWindow), because the wallet SDK pulls b…

---

## [Lace wallet doesn't implement getProvingProvider(), expected behavior or version gap?](https://forum.midnight.network/t/lace-wallet-doesnt-implement-getprovingprovider-expected-behavior-or-version-gap/1213)

<div class="topic-metadata">

**Author:** [@8pro](https://forum.midnight.network/u/8pro)\
**Replies:** 2\
**Last updated:** [May 13, 2026, 12:48pm UTC](https://forum.midnight.network/t/lace-wallet-doesnt-implement-getprovingprovider-expected-behavior-or-version-gap/1213 "2026-05-13T12:48:11Z")

</div>

Hi, I’m building a dApp on Midnight preprod using @midnight-ntwrk/dapp-connector-api@4.0.1. When connecting with 1AM wallet, wallet.getProvingProvider() exists and ZK proving works perfectly. When connecting with Lace …

---

## [ 12 Iterator Helpers bugs in Midnight SDK under Node v22 — Array.from() workarounds included](https://forum.midnight.network/t/12-iterator-helpers-bugs-in-midnight-sdk-under-node-v22-array-from-workarounds-included/1184)

<div class="topic-metadata">

**Author:** [@takuya](https://forum.midnight.network/u/takuya)\
**Replies:** 3\
**Last updated:** [April 28, 2026, 2:58pm UTC](https://forum.midnight.network/t/12-iterator-helpers-bugs-in-midnight-sdk-under-node-v22-array-from-workarounds-included/1184 "2026-04-28T14:58:00Z")

</div>

Hi team, While working on a Mainnet deploy from a CLI-based script (Node v22, @midnight-ntwrk/midnight-js-\* SDK), I hit a series of TypeError failures caused by Iterator Helpers assumptions in the SDK. Sharing the full …

---

## [Preprod: Custom error 173 + "Wallet.InsufficientFunds: could not balance dust" despite large dust.balance(now) on shared bridge claimer](https://forum.midnight.network/t/preprod-custom-error-173-wallet-insufficientfunds-could-not-balance-dust-despite-large-dust-balance-now-on-shared-bridge-claimer/1164)

<div class="topic-metadata">

**Author:** [@iampress](https://forum.midnight.network/u/iampress)\
**Replies:** 5\
**Last updated:** [April 20, 2026, 10:57pm UTC](https://forum.midnight.network/t/preprod-custom-error-173-wallet-insufficientfunds-could-not-balance-dust-despite-large-dust-balance-now-on-shared-bridge-claimer/1164 "2026-04-20T22:57:29Z")

</div>

What are we trying to do? Build a production bridge / capacity-exchange service on Midnight Preprod that uses a shared bridge claimer wallet to submit Ethereum- and BNB-originated claim transactions on Midnight (via @mid…

---

## [Shielded kernel operations (receiveShielded, mintShieldedToken) fail with proof server 400](https://forum.midnight.network/t/shielded-kernel-operations-receiveshielded-mintshieldedtoken-fail-with-proof-server-400/1137)

<div class="topic-metadata">

**Author:** [@BoHsuu](https://forum.midnight.network/u/BoHsuu)\
**Replies:** 2\
**Last updated:** [April 14, 2026, 4:20pm UTC](https://forum.midnight.network/t/shielded-kernel-operations-receiveshielded-mintshieldedtoken-fail-with-proof-server-400/1137 "2026-04-14T16:20:25Z")

</div>

Problem All shielded kernel operations (receiveShielded, mintShieldedToken, sendShielded) fail with HTTP 400 from the proof server. Unshielded operations work fine on the same setup. Minimal Reproduce Contract with only…

---

## [Mainnet node (0.22.3) stuck at block #1 during initial sync](https://forum.midnight.network/t/mainnet-node-0-22-3-stuck-at-block-1-during-initial-sync/1130)

<div class="topic-metadata">

**Author:** [@Yuta](https://forum.midnight.network/u/Yuta)\
**Replies:** 1\
**Last updated:** [April 13, 2026, 8:42pm UTC](https://forum.midnight.network/t/mainnet-node-0-22-3-stuck-at-block-1-during-initial-sync/1130 "2026-04-13T20:42:21Z")

</div>

Hi Mainnet node (0.22.3) stuck at block #1 during initial sync. The DBSync NIGHT token UTXO query takes 72+ seconds (1.2M rows in ma\_tx\_out), peers disconnect before completion. Is there a recommended way to bootstrap in…

---

## [Midnight: Building with Programmable Privacy in Web3](https://forum.midnight.network/t/midnight-building-with-programmable-privacy-in-web3/1146)

<div class="topic-metadata">

**Author:** [@bananagoose](https://forum.midnight.network/u/bananagoose)\
**Replies:** 0\
**Last updated:** [April 11, 2026, 4:17pm UTC](https://forum.midnight.network/t/midnight-building-with-programmable-privacy-in-web3/1146 "2026-04-11T16:17:25Z")

</div>

Introduction Public blockchains introduced a powerful idea: trustless systems where anyone can verify everything. But this radical transparency comes with a tradeoff — no privacy by default. For many real-world applicat…

---

## [Systemic toolchain issues: runtime mismatch + deploy failure after fix (ContractMaintenanceAuthority error)](https://forum.midnight.network/t/systemic-toolchain-issues-runtime-mismatch-deploy-failure-after-fix-contractmaintenanceauthority-error/1095)

<div class="topic-metadata">

**Author:** [@tusharpamnani](https://forum.midnight.network/u/tusharpamnani)\
**Replies:** 5\
**Last updated:** [April 11, 2026, 11:38am UTC](https://forum.midnight.network/t/systemic-toolchain-issues-runtime-mismatch-deploy-failure-after-fix-contractmaintenanceauthority-error/1095 "2026-04-11T11:38:41Z")

</div>

I’m running into a blocking issue across all Midnight contracts, and it seems like a broader toolchain inconsistency rather than a local setup problem. 1) Runtime Version Mismatch (default state) Out of the box, all co…

---

## [Dormant project courtesy check before moving project on midnight-awesome-dapps to dormant-projects/](https://forum.midnight.network/t/dormant-project-courtesy-check-before-moving-project-on-midnight-awesome-dapps-to-dormant-projects/1142)

<div class="topic-metadata">

**Author:** [@Owen](https://forum.midnight.network/u/Owen)\
**Replies:** 0\
**Last updated:** [April 10, 2026, 2:07pm UTC](https://forum.midnight.network/t/dormant-project-courtesy-check-before-moving-project-on-midnight-awesome-dapps-to-dormant-projects/1142 "2026-04-10T14:07:02Z")

</div>

Hey everyone, doing a quick courtesy check before opening a PR on the Awesome Midnight dApps list. I’m planning to move this projects to dormant-projects/ — no substantive code activity since ~October 2025: - Midnight Ba…

---

## [Evaluating Compact for a distributed threat intel verification circuit (circom 2.1.9, Poseidon/BN254)](https://forum.midnight.network/t/evaluating-compact-for-a-distributed-threat-intel-verification-circuit-circom-2-1-9-poseidon-bn254/1132)

<div class="topic-metadata">

**Author:** [@Grideos](https://forum.midnight.network/u/Grideos)\
**Replies:** 0\
**Last updated:** [April 5, 2026, 5:20pm UTC](https://forum.midnight.network/t/evaluating-compact-for-a-distributed-threat-intel-verification-circuit-circom-2-1-9-poseidon-bn254/1132 "2026-04-05T17:20:55Z")

</div>

Following up on a conversation in #dev-chat where norm pointed me to the forum for Compact team input. The problem We’re building a distributed threat intelligence network where nodes need to verify that anonymized att…

---

## [Witnesses Explained: How Midnight Uses Private Data Without Exposing It](https://forum.midnight.network/t/witnesses-explained-how-midnight-uses-private-data-without-exposing-it/1113)

<div class="topic-metadata">

**Author:** [@8pro](https://forum.midnight.network/u/8pro)\
**Replies:** 0\
**Last updated:** [April 1, 2026, 8:29am UTC](https://forum.midnight.network/t/witnesses-explained-how-midnight-uses-private-data-without-exposing-it/1113 "2026-04-01T08:29:06Z")

</div>

Hey everyone :waving\_hand: I just published a deep dive into one of the most important concepts in Midnight: witnesses. If you’ve gone through the early lessons, you’ve probably noticed something: Everything works… bu…

---

## [From Submit to Confirmed: What Actually Happens in a Midnight Transaction](https://forum.midnight.network/t/from-submit-to-confirmed-what-actually-happens-in-a-midnight-transaction/1099)

<div class="topic-metadata">

**Author:** [@8pro](https://forum.midnight.network/u/8pro)\
**Replies:** 0\
**Last updated:** [March 26, 2026, 10:25am UTC](https://forum.midnight.network/t/from-submit-to-confirmed-what-actually-happens-in-a-midnight-transaction/1099 "2026-03-26T10:25:20Z")

</div>

Hey everyone :waving\_hand: I just published a deep dive on what really happens between clicking submit and seeing a transaction confirmed on Midnight. If you’ve used the network, you’ve probably noticed the delay (~20–…

---

## [Complete Hello World Guide: From Setup to Deployed Contract (with Troubleshooting)](https://forum.midnight.network/t/complete-hello-world-guide-from-setup-to-deployed-contract-with-troubleshooting/1098)

<div class="topic-metadata">

**Author:** [@8pro](https://forum.midnight.network/u/8pro)\
**Replies:** 0\
**Last updated:** [March 25, 2026, 3:42pm UTC](https://forum.midnight.network/t/complete-hello-world-guide-from-setup-to-deployed-contract-with-troubleshooting/1098 "2026-03-25T15:42:38Z")

</div>

Hey Midnight community, I put together a comprehensive step-by-step guide for developers who want to deploy their first Compact contract on Midnight Preprod. I struggled to find a single resource that covered everything…

---

## [How do I get tDUST for my testnet app?](https://forum.midnight.network/t/how-do-i-get-tdust-for-my-testnet-app/837)

<div class="topic-metadata">

**Author:** [@DrCalebL](https://forum.midnight.network/u/DrCalebL)\
**Replies:** 5\
**Last updated:** [March 21, 2026, 11:18am UTC](https://forum.midnight.network/t/how-do-i-get-tdust-for-my-testnet-app/837 "2026-03-21T11:18:04Z")

</div>

I am using Lace Testnet wallet and the faucet doesn’t send tDUST to it. The transaction ID of the “successful” faucet withdrawal isn’t even found on the midnight testnet explorer when searched. I am now figuring out the …

---

## [Compact Under the Hood: How Midnight’s Smart Contract Language Encodes Privacy by Default](https://forum.midnight.network/t/compact-under-the-hood-how-midnight-s-smart-contract-language-encodes-privacy-by-default/1092)

<div class="topic-metadata">

**Author:** [@8pro](https://forum.midnight.network/u/8pro)\
**Replies:** 0\
**Last updated:** [March 20, 2026, 8:56am UTC](https://forum.midnight.network/t/compact-under-the-hood-how-midnight-s-smart-contract-language-encodes-privacy-by-default/1092 "2026-03-20T08:56:20Z")

</div>

Hey everyone :waving\_hand: I just published a deep dive on Compact, Midnight’s smart contract language, focusing on how it enforces privacy by default at the language level. The article explores a key shift in how we t…

[Next page](https://forum.midnight.network/c/technical-questions/5.md?page=1)
