Midnames
For the complete documentation index, see llms.txt
Midnames has a suite of tools and services to help you interact with the Midnight Network. This includes a name service that allows you to register human-readable names for Midnight addresses, and a playground where you can write and compile Compact code.
Compact Playground
You can access the playground at playground.midnames.com. There, you can write and compile Compact code, and interact with it using the integrated Simulator.
You'll find the examples from the Compact documentation in the "Examples" section of the playground. You can also create your own projects and share them with others.
Compilation
You can compile your Compact code using either a remote or local compiler. The remote compiler sends code to a server. The local compiler uses a WASM-based version that runs in your browser, but has some limitations, such as failing to generate proper error messages.
The local compiler is slow and may take a while to compile larger contracts. The errors it generates are not helpful.
Name service
Midnames also runs a name service at midnight.domains. The name service allows you to register human-readable names that resolve to Midnight addresses, making it easier to interact with contracts and addresses on the Midnight Network.
You can find a guide on how to buy a domain at docs.midnight.domains.
SDK
The midnight.domains SDK is available as an npm package. You can install it using:
npm install @midnames/sdk
The SDK provides functions to interact with the name service, such as registering a name, resolving a name to an address, and adding metadata to your domains. You can find the documentation for the SDK at docs.midnight.domains.