Developers
Open contracts, a typed SDK, a committee CLI
Everything that touches a bid lives in one clearly marked module. Integrate Waxseal into your own procurement flow or run the committee app on your own machine.
- Compact contracts for clock and committee mode, compiled with the pinned toolchain
- TypeScript SDK for Node and the browser (Midnight DApp Connector: 1AM, Lace)
- Committee CLI: key generation with t-of-n shares, reveal, auditor export
- Public API with signed webhooks for tender events
// create a tender (metadata is hashed into the contract)
const address = await createTender(providers, {
minBid: 100n, maxBid: 1_000n,
closeTime: new Date(Date.now() + 86_400_000),
winnerRule: 'lowest', depositAmount: 0n, whitelist: false,
clockStep: 50n, clockRoundSeconds: 600n, metadata,
});
// commit a sealed bid: (bid, salt) never leave the device
await commitBid(providers, address, 420n);
// which round can I claim in? computed locally
qualifyingRound(420n, tender); // -> 7n