midnight-dapp:transaction-flows

Automate Midnight transaction build, prove, submit, and status polling flows.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/aaronbassett/midnight-knowledgebase --skill midnight-dapp-transaction-flows
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: midnight-dapp:transaction-flows
Source: https://github.com/aaronbassett/midnight-knowledgebase/tree/main/plugins/midnight-dapp/skills/transaction-flows
Command: npx skills add https://github.com/aaronbassett/midnight-knowledgebase --skill midnight-dapp-transaction-flows

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps DApp developers manage the entire Midnight transaction lifecycle by automating build, prove, submit flows and real-time status updates, reducing manual follow-ups and uncertainty.

Core Features & Use Cases

  • Build: Construct transactions using contract.callTx.* with private witnesses.
  • Prove: Generate ZK proofs via a local proof server using walletAPI.balanceAndProveTransaction.
  • Submit: Submit proven transactions and receive a txHash for tracking.
  • Status Tracking: Poll for confirmation and update UI with progress, timeouts, and retries.
  • Retry Patterns: Apply exponential backoff retries for transient failures.

Quick Start

Build a Midnight transfer, prove it with the wallet, submit the proven transaction, and monitor confirmations.

Frequently Asked Questions about midnight-dapp:transaction-flows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I submit and track a Midnight transaction lifecycle in a DApp?▼

To submit and track a Midnight transaction lifecycle, you build the transaction with private witnesses, generate ZK proofs via the local proof server, submit for a txHash, and poll for confirmation with retry logic.

How does walletAPI balanceAndProveTransaction work for generating ZK proofs?▼

The walletAPI balanceAndProveTransaction function works by generating zero-knowledge proofs through a local proof server, ensuring your Midnight DApp transaction is properly validated before submission.

What is the best way to handle transient failures when polling Midnight transaction status?▼

The best way to handle transient failures during Midnight transaction status polling is to apply exponential backoff retry patterns, ensuring robust confirmation tracking without overwhelming the network.

Can I construct Midnight transactions with private witnesses using contract callTx?▼

Yes, you can construct Midnight transactions with private witnesses using contract.callTx.* methods, allowing your DApp to build secure transactions before the proving and submission phases.

Does Midnight transaction tracking support UI progress updates and timeouts?▼

Midnight transaction tracking supports UI progress updates and timeouts by polling for finality confirmation, allowing your DApp to display real-time status and handle delays with exponential backoff retries.