Midnight Blockfrost Migration: What DApp Developers Must Change
Midnight has moved its public Mainnet RPC and indexer services to Blockfrost. Here is what developers need to change and test.
On this page
Midnight's public mainnet infrastructure changed on September 30, when the network retired its own hosted indexer and remote procedure call (RPC) endpoints and moved public access to Blockfrost. The change is already live: as of October 1, the old indexer hostname no longer resolves, while the old RPC endpoint can disappear without warning. For developers running Midnight applications, this is an infrastructure migration, not a cosmetic endpoint rename.
The important part is that the blockchain itself did not move. Applications still connect to Midnight Mainnet, but the public services used to read blockchain data and communicate with a node now come through Blockfrost. Existing applications therefore need to check their endpoint configuration, authentication, WebSocket connections and deployment environment rather than assuming that an application will continue working because the chain itself is unchanged.
Midnight has retired the public endpoints developers were using
Midnight retired rpc.mainnet.midnight.network and indexer.mainnet.midnight.network at 22:00 UTC on September 30. The indexer hostname stopped resolving from October 1, while Midnight warns that the RPC endpoint may continue answering temporarily but can stop at any time. That creates a particularly awkward failure mode for developers who only update their application after seeing an RPC error: an application may appear healthy until the remaining endpoint finally disappears.
The change affects Mainnet only. Midnight's documentation says Preview and Preprod endpoints were unchanged as of October 1, so developers should not blindly replace every Midnight endpoint in every environment with a Blockfrost address. A production configuration and a testing configuration may now require different providers, which makes environment-specific configuration more important than hard-coded endpoint replacement.
Blockfrost now handles both the indexer and node RPC
Blockfrost is providing two different pieces of infrastructure for Midnight Mainnet. Its Indexer API exposes blockchain information through GraphQL, which lets an application request structured data such as blocks, transactions, contracts and wallet events, while its node RPC provides lower-level communication with a Midnight node for operations such as transaction submission. WebSocket endpoints are also available for applications that need live subscriptions rather than repeatedly polling for new data.
That separation matters because changing the base URL is not necessarily enough. An application that only queries indexed data may need to update its GraphQL endpoint, while a wallet or transaction flow may also depend on the node RPC. A DApp using real-time subscriptions has a third endpoint to verify. Treating the migration as three separate integrations makes it much easier to find the part that actually breaks.
The authentication model adds a new production dependency
Midnight's new public Mainnet services require a Blockfrost project token. Blockfrost supports authentication through a project_id request header and also supports putting the project identifier in the request URL for clients that cannot set custom headers. Midnight's documentation specifically tells developers to create a Midnight Mainnet project and use its token when connecting to the public services.
This changes the operational model for applications that previously depended only on a publicly reachable Midnight endpoint. The application now has a service credential that must be stored securely and supplied at runtime, rather than embedded into browser code or committed to a repository. Developers should also distinguish a public client configuration from a server-side secret: exposing a Blockfrost project token unnecessarily can make usage harder to control and complicate rate-limit management.
The indexer is GraphQL, so old REST assumptions do not carry over
Developers coming from Cardano may expect Blockfrost to provide the same REST-style interface they already know. Midnight is different. Blockfrost's Midnight Indexer uses GraphQL, meaning the application sends a query describing the fields it needs instead of selecting a fixed REST endpoint for each resource. Blockfrost says the Midnight API also enforces limits on query depth, field count, query complexity and execution time, so applications need to account for those constraints when constructing larger queries.
That makes the migration more substantial for a custom application than simply changing a hostname. A frontend or backend that previously depended on a Midnight-hosted GraphQL service may need little more than configuration changes, but code that assumed a different API shape needs to be checked against Blockfrost's current schema. Developers should test the exact queries their application uses, especially dashboards that request many related objects in one operation.
Midnight.js also needs the new provider configuration
Midnight.js, the network's JavaScript and TypeScript software development kit, can be pointed at the Blockfrost-hosted infrastructure. Blockfrost documents a configuration that supplies the project identifier through the service URL, allowing Midnight.js to connect to the hosted indexer. The same service can expose the WebSocket interface for subscriptions and the node RPC for lower-level operations.
The practical lesson is to keep these provider settings outside application logic. Put the Mainnet project identifier and endpoint configuration in environment-specific variables, then make the application select them according to whether it is running against Preview, Preprod or Mainnet. That avoids a common migration mistake: fixing production while accidentally pointing a staging build at production infrastructure, or fixing Mainnet while leaving an old endpoint buried in a separate worker or wallet service.
WebSocket applications have another migration point to check
Applications that listen for new blocks, contract actions or ledger events cannot rely on ordinary HTTP requests alone. Blockfrost provides a Midnight WebSocket service for those subscriptions, with the Mainnet service separated from the HTTP GraphQL endpoint. If an application has a long-running subscription process, that connection needs to be tested independently because a working GraphQL query does not prove that the WebSocket path is configured correctly.
This is particularly relevant for trading interfaces, explorers, monitoring tools and applications that update balances or transaction states immediately after network activity. A page can successfully load historical data while its live-update channel remains broken. The migration test therefore needs at least one real-time event, not just a successful request for the latest block.
The free tier makes the migration accessible, but limits still matter
Blockfrost says Midnight support is included in its existing plans, including the free tier, and its current free plan provides 50,000 requests per day. The service also says Midnight projects share the rate limits associated with the relevant Blockfrost plan. That means a small DApp can migrate without immediately adding a separate infrastructure bill, but a production application still needs to understand its request pattern before assuming the free allowance is sufficient.
Request volume is especially easy to underestimate when an application polls repeatedly. A dashboard that refreshes several resources every few seconds can consume far more API capacity than a page that loads once, while a WebSocket subscription can be a better fit for information that needs to change continuously. Developers should measure actual requests during normal usage instead of treating the daily allowance as an abstract number.
Self-hosting remains a different option from using Blockfrost
Blockfrost is now the primary public provider for Midnight's Mainnet indexer and node RPC, but it is not the only architectural model available to a developer. Midnight's own indexer project supports running indexer components yourself, including a standalone configuration with a local node and database. That route transfers responsibility for infrastructure, synchronization, storage, monitoring and availability from the managed provider to the application operator.
For most smaller DApps, a managed provider removes a large operational burden. A team that already operates blockchain infrastructure, however, may prefer direct control over its node and indexing stack. The important point is that Midnight's endpoint retirement does not mean developers must redesign their application around one permanent hosting architecture; it means applications using the old public Midnight services must choose a supported Mainnet access path.
What developers should test before calling the migration finished
A safe migration should start by searching the entire codebase for the retired Mainnet hostnames, including backend services, browser configuration, wallet adapters, monitoring jobs and deployment files. Replace the affected Mainnet services with the Blockfrost configuration, create the required Midnight Mainnet project token, and verify the indexer, RPC and WebSocket paths separately. Keep Preview and Preprod settings unchanged unless the application deliberately intends to move those environments too.
Then test the operations that matter to users rather than stopping at a health check. Read recent blockchain data, query the contracts your application actually uses, establish a live subscription if the application depends on one, and submit a transaction through the normal wallet flow. Finally, verify that credentials come from deployment secrets rather than source code and that a temporary provider failure produces a controlled application error. The migration is complete when those real application paths work, not merely when the new endpoint returns a response.
Midnight's infrastructure change is a useful reminder that a blockchain application has more dependencies than its smart contracts. The ledger can remain untouched while the RPC, indexer, authentication and event-delivery layers underneath a DApp change substantially. With the old Mainnet endpoints already retired, developers who still have Midnight infrastructure hard-coded into production should treat the provider migration as an active compatibility issue rather than something to postpone until the old RPC finally stops responding.
Share this post



