Blockfrost Is Shutting Down: How to Move Your Cardano App to Demeter
A move from Blockfrost to Demeter may start with two settings: the API address and the key. Whether it ends there depends on what your app actually uses. A simple block feed and a dashboard that also reads pool history, receives webhooks and stores files on IPFS have different migration jobs.
Blockfrost is shutting down its hosted Cardano API. Cardano itself keeps running. Start with the earliest deadline that affects your app, and test the features people use before changing anything on your live site.
1. Find the deadline that applies to your app
| What you use | Blockfrost cutoff |
|---|---|
| Cardano Preview API | December 15, 2026 |
| Cardano Preprod API | December 30, 2026 |
| Cardano Mainnet API | January 31, 2027 |
Your public dashboard might use Mainnet while automated tests use Preview. If you only check the production date, you can lose your test environment before you’re ready to move the public site.
Search server configuration, plugins, scheduled jobs and SDK settings for references to Blockfrost. For each call, write down the network, the API path and the screen or job that depends on it. A pool dashboard might fetch the latest block, look up a pool’s name, and build an epoch history table from three separate calls. A successful response for one tells you nothing about the other two.
2. Set up a Blockfrost to Demeter connection
Create a Blockfrost port in the Demeter console for the Cardano network you plan to test. A port is an API connection with its own key. Store the new key on the server or in a secret manager. Keep it out of your front-end bundle, screenshots and logs.
Update the base URL and key together. Demeter accepts the existing project_id header, but it needs the new Demeter key. The /api/v0 prefix can stay if your client already uses it. Check the final request URL if your SDK adds part of the path automatically.
One detail matters here: the key determines which network answers. A Preprod key can return Preprod data even when sent to the Mainnet host. Match the host and key, then verify the result against a block you know belongs to the intended network.
3. Start with one read-only test
On Preprod, set your new key as DEMETER_API_KEY in the server environment. In a Bash shell, run:
curl -fsS -H "project_id: $DEMETER_API_KEY" "https://cardano-preprod.blockfrost-m1.dmtr.host/api/v0/blocks/latest"
This reads a block. It doesn’t connect a wallet or submit a transaction. Look for the block height, hash and time. When comparing providers, query the same known block hash on both sides. Two calls for the latest block can legitimately disagree if a new block appears between them.
Know which pool figures should match. Open a known pool and check that its live stake, active stake and epoch history still make sense as separate measures. Explore Blockiy Pool Intelligence
4. Test features that can break despite a working connection
If you use a live block table, open it on staging and wait for two new blocks. Both should appear without a page reload, in order. If a pool name arrives late, the block should still be visible. Test an older result, a second page of results and an empty result as well.
Dolos, the software behind Demeter’s compatible API, documents a route for a pool’s blocks within a specific epoch. Its coverage list doesn’t show the old all-time pool blocks route. If your app relies on that route, test it directly. A view that scans only recent epochs must not be labeled all-time.
Give IPFS, hosted webhooks and mempool endpoints separate migration plans. The Demeter port doesn’t replace those services. For IPFS, verify that the existing content identifiers still resolve through an independent route after pinning elsewhere. For notifications, make sure an event delivered twice doesn’t create two credits or alerts.
5. Switch one feature and watch it
Check HTTP status before decoding JSON. Demeter can return an empty body for 401 or 429. On 401, check the key. On 429, slow your retries and keep the last successful data visibly dated instead of clearing the screen. For public dashboards, a shared server cache also keeps a hundred open browsers from making a hundred identical requests.
Change the production key and base URL after staging passes. Keep the old configuration as a rollback only while it still works. After the switch, check the public screen itself for new data. The migration is done when the features your users rely on still work, not simply when the first API call succeeds.
