About
## Wave 1 submission
This wave connected Avtar.ai’s off-chain metering to live Midnight Preprod settlement.
- Live deployment and settlement: Integrated the compiled Compact contract with Midnight’s contract and wallet SDKs. Added escrow funding, local proof generation, transaction submission, and confirmed transaction responses.
- Working agent services: Connected separate consumer and provider HTTP agents to weather, crypto-price, and translation APIs. Added x402-style payment-term discovery, optional OpenAI tool selection, and a built-in keyword router.
- Off-chain usage accounting: Service calls carry signed cumulative vouchers, allowing multiple requests to share one final settlement. Consumer channel terms and accepted vouchers are persisted in SQLite for recovery.
- Contract protections: Added explicit channel closure to prevent repeat settlement, including attempts using a different nullifier secret. Settlement also checks the channel’s recorded escrow amount.
- Verification and documentation: Added contract and wallet checks, a settlement recovery command, and instructions for running both local simulation and the live Preprod HTTP demo.
Raw rates remain off-chain through blinded commitments. Payment amounts and addresses remain public, and the demo advertises rates through HTTP discovery.
Deliverables:
Source code and demo instructions - https://github.com/ZKryptosaurus/Avtar.ai, deployment and recovery guide -https://github.com/ZKryptosaurus/Avtar.ai/blob/main/packages/onchain-setup/midnight/README.md
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.


