How to migrate from Blockfrost to NOWNodes
Blockfrost is shutting down its hosted API. If your Cardano wallet, exchange, dApp, payment service, or indexer depends on Blockfrost, you need to move to another provider before your network closes.
NOWNodes provides a Blockfrost-compatible REST interface for Cardano Mainnet, alongside Ogmios WebSocket and GraphQL interfaces. For documented REST reads, the migration generally starts with two changes: replacing the base URL and switching the authentication header. Transaction submission, Plutus script evaluation, and provider-specific products require separate integration checks.
This tutorial walks through the migration without requiring a rewrite of your entire Cardano application.
According to the Blockfrost shutdown announcement, the transition schedule is:
| Date | Event |
|---|---|
| December 1, 2026 | Maintenance mode begins |
| December 15, 2026 | Preview shuts down |
| December 30, 2026 | Preprod and IPFS shut down |
| January 31, 2027 | Mainnet shuts down |
Existing Blockfrost credentials remain usable on each network until its respective closure. Plan your cutover before these deadlines. This guide focuses on the NOWNodes Mainnet endpoints listed in the Cardano API documentation and network directory.
1. Start with a Quick Audit
Before changing code, check how your app uses Blockfrost.
Look for:
- Mainnet, Preprod, and Preview base URLs;
project_idauthentication headers;- block and epoch queries;
- payment address balances, UTXOs, and transaction history;
- staking accounts, pools, native assets, metadata, scripts, and datums;
- transaction submission through
POST /tx/submit; - script evaluation through
POST /utils/txs/evaluateorPOST /utils/txs/evaluate/utxos; - SDKs or wallet libraries that assume the original Blockfrost URL or response format;
- pagination, polling, webhooks, IPFS, and mempool queries;
- current request volume, peak RPS, errors, and indexer lag.
Search your codebase for:
blockfrost.io
BLOCKFROST
project_id
@blockfrost/blockfrost-js
BlockFrostAPI
BlockfrostProvider
/api/v0
/tx/submit
/utils/txs/evaluateSeparate REST data reads from transaction execution and provider-specific features. An application that only reads data will have a smaller migration scope than a wallet or Plutus dApp that also builds and submits transactions.
2. What Moves Directly
The following REST paths are listed in the NOWNodes Cardano documentation. The relative path and HTTP method can be retained; validate the response fields and query parameters that your app actually uses before moving production traffic.
| HTTP method and relative path | Migration |
|---|---|
GET /health | URL and authentication |
GET /blocks/latest | URL and authentication |
GET /blocks/{hash_or_number} | URL and authentication |
GET /blocks/{hash_or_number}/txs | URL and authentication; verify pagination |
GET /addresses/{address} | URL and authentication |
GET /addresses/{address}/utxos | URL and authentication; verify list schema and pagination |
GET /addresses/{address}/transactions | URL and authentication; validate filters |
GET /txs/{hash} | URL and authentication |
GET /txs/{hash}/utxos | URL and authentication; verify input/output schema |
GET /txs/{hash}/metadata | URL and authentication |
GET /epochs/latest/parameters | URL and authentication; validate fee and protocol fields |
GET /accounts/{stake_address} | URL and authentication |
GET /assets/{asset} | URL and authentication |
GET /pools/{pool_id} | URL and authentication |
GET /scripts/{script_hash} | URL and authentication |
Path variable names are illustrative: replace each with the actual address, hash, pool ID, or block number. They are not literal parts of the URL. See the complete Cardano reference for other documented endpoints.
3. What Does Not Move Directly
Do not assume the entire Blockfrost API can be migrated with a global URL replacement.
| Blockfrost feature | Migration approach |
|---|---|
POST /tx/submit | Use Ogmios submitTransaction over WebSocket |
POST /utils/txs/evaluate | Use Ogmios evaluateTransaction |
POST /utils/txs/evaluate/utxos | Use evaluateTransaction with additionalUtxo; convert the input format |
| Blockfrost mempool REST methods | Use Ogmios mempool methods if they cover your requirements |
| Webhooks | Implement a polling or chain-sync worker, or use a separate notification service |
| IPFS | Migrate to a separate IPFS provider or self-hosted IPFS |
| Preview and Preprod | Confirm availability and network-specific endpoints separately |
| SDKs with fixed authentication | Use a configurable HTTP client, custom adapter, or server-side proxy |
| Other unlisted REST methods | Check the current API reference and test a replacement |
The NOWNodes Blockfrost REST reference does not list the original REST submission or evaluation paths. This guide uses the documented Ogmios methods instead of assuming those REST routes exist.
4. Endpoint Mapping
Create a NOWNodes API key in the dashboard and make sure your plan includes Cardano access.
| Interface | Blockfrost | NOWNodes |
|---|---|---|
| Cardano Mainnet REST | https://cardano-mainnet.blockfrost.io/api/v0 | https://ada-blockfrost.nownodes.io |
| REST authentication | project_id: YOUR_BLOCKFROST_PROJECT_ID | api-key: YOUR_NOWNODES_API_KEY |
| Transaction submission and evaluation | Blockfrost REST POST routes | wss://ada-ogmios.nownodes.io/wss/{NOWNODES_API_KEY} |
| GraphQL | Not part of the REST interface | https://ada-graphql.nownodes.io/graphql |
| Cardano Preview REST | https://cardano-preview.blockfrost.io/api/v0 | Confirm a network-specific endpoint with NOWNodes |
| Cardano Preprod REST | https://cardano-preprod.blockfrost.io/api/v0 | Confirm a network-specific endpoint with NOWNodes |
The public NOWNodes directory lists the Cardano interfaces above for Mainnet. Do not send testnet addresses or transactions to the Mainnet service.
The most important REST change is that the NOWNodes base URL does not contain /api/v0.
Before:
https://cardano-mainnet.blockfrost.io/api/v0/blocks/latestAfter:
https://ada-blockfrost.nownodes.io/blocks/latest5. Configure Environment Variables
Before:
BLOCKFROST_BASE_URL=https://cardano-mainnet.blockfrost.io/api/v0
BLOCKFROST_PROJECT_ID=YOUR_BLOCKFROST_PROJECT_IDAfter:
NOWNODES_ADA_REST_URL=https://ada-blockfrost.nownodes.io
NOWNODES_ADA_OGMIOS_URL=wss://ada-ogmios.nownodes.io/wss
NOWNODES_ADA_GRAPHQL_URL=https://ada-graphql.nownodes.io/graphql
NOWNODES_API_KEY=YOUR_NOWNODES_API_KEYDuring rollout, keep both REST configurations and select one using CARDANO_PROVIDER:
CARDANO_PROVIDER=nownodes
BLOCKFROST_BASE_URL=https://cardano-mainnet.blockfrost.io/api/v0
BLOCKFROST_PROJECT_ID=YOUR_BLOCKFROST_PROJECT_ID
NOWNODES_ADA_REST_URL=https://ada-blockfrost.nownodes.io
NOWNODES_ADA_OGMIOS_URL=wss://ada-ogmios.nownodes.io/wss
NOWNODES_API_KEY=YOUR_NOWNODES_API_KEYKeep these values on your backend or in a secret manager. Do not embed API keys in public browser bundles, mobile app packages, or logs. In particular, redact the Ogmios connection URL because it contains the key.
The shell examples below assume the environment variables have already been exported. If using a .env file, load it with your application's configuration mechanism or export the values in your shell first.
6. Test the New REST Endpoint
First, check the existing Blockfrost connection:
curl --fail-with-body --silent --show-error \
-H "project_id: $BLOCKFROST_PROJECT_ID" \
"$BLOCKFROST_BASE_URL/blocks/latest"Run the equivalent request against NOWNodes:
curl --fail-with-body --silent --show-error \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/blocks/latest"The latest block endpoint returns a JSON object with fields including hash, height, slot, epoch, and time. Unlike EVM RPC, there is no JSON-RPC result wrapper on this REST endpoint.
Check the NOWNodes service health:
curl --fail-with-body --silent --show-error \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/health"The documented health response is:
{"status":"ok"}A successful health check does not prove that the indexer is at the chain tip. Compare block heights, slots, and timestamps from both providers. Their latest block hashes may differ temporarily as new blocks arrive.
For a deterministic check, use a known historical block hash from your database and request /blocks/{hash} from both providers. Compare immutable fields such as the hash, slot, and height. Do not require dynamic fields such as confirmations to match exactly.
Confirm the network using a known Mainnet block or genesis configuration, not an EVM eth_chainId call.
7. Update Application Code
Direct fetch
Before:
const response = await fetch(
`${process.env.BLOCKFROST_BASE_URL}/blocks/latest`,
{ headers: { project_id: process.env.BLOCKFROST_PROJECT_ID } }
);
if (!response.ok) throw new Error(`Blockfrost HTTP ${response.status}`);
const block = await response.json();After:
const response = await fetch(
`${process.env.NOWNODES_ADA_REST_URL}/blocks/latest`,
{ headers: { 'api-key': process.env.NOWNODES_API_KEY } }
);
if (!response.ok) throw new Error(`NOWNodes HTTP ${response.status}`);
const block = await response.json();Small REST Wrapper
Centralize URL construction, authentication, error handling, and provider selection. The following example uses Node.js 20+ and the environment variables from section 5.
// cardano-rest.mjs
const provider = process.env.CARDANO_PROVIDER ?? 'nownodes';
const configs = {
nownodes: {
baseUrl: process.env.NOWNODES_ADA_REST_URL,
header: 'api-key',
key: process.env.NOWNODES_API_KEY
},
blockfrost: {
baseUrl: process.env.BLOCKFROST_BASE_URL,
header: 'project_id',
key: process.env.BLOCKFROST_PROJECT_ID
}
};
const config = configs[provider];
if (!config?.baseUrl || !config.key) {
throw new Error('Missing Cardano provider configuration');
}
export async function cardanoGet(path, query = {}) {
const url = new URL(
`${config.baseUrl.replace(/\/+$/, '')}/${path.replace(/^\/+/, '')}`
);
for (const [key, value] of Object.entries(query)) {
if (value !== undefined && value !== null) {
url.searchParams.set(key, String(value));
}
}
const response = await fetch(url, {
method: 'GET',
headers: { [config.header]: config.key, Accept: 'application/json' },
signal: AbortSignal.timeout(15000),
redirect: 'error'
});
const raw = await response.text();
let body;
try { body = JSON.parse(raw); } catch { body = raw; }
if (!response.ok) {
const error = new Error(`Cardano API HTTP ${response.status}`);
error.status = response.status;
error.retryAfter = response.headers.get('retry-after');
error.body = body;
throw error;
}
return body;
}Use the wrapper for documented routes:
import { cardanoGet } from './cardano-rest.mjs';
const block = await cardanoGet('/blocks/latest');
console.log(block.height, block.hash);Treat path as an internal route, not arbitrary user-controlled input. Encode dynamic path segments with encodeURIComponent. This wrapper is for REST reads, not transaction submission or evaluation.
Existing Blockfrost SDKs
If your SDK supports a custom backend, verify all of the following before reusing it:
- the custom URL does not acquire an extra
/api/v0prefix; - the HTTP client can send the
api-keyheader rather than onlyproject_id; - its route names, pagination, and response validators match NOWNodes;
- methods for submission and evaluation are redirected to the appropriate adapter.
If the SDK cannot configure authentication, replace its network transport or put a server-side adapter in front of NOWNodes. Keep the existing Cardano serialization, key management, transaction building, and signing logic. An adapter must only expose approved routes and must enforce access control; it should not be an open proxy.
8. Migrate Common Cardano Flows
For the following examples, set ADA_ADDRESS, ADA_STAKE_ADDRESS, ADA_TX_HASH, ADA_ASSET, and ADA_POOL_ID to known Mainnet values from your application as needed. Placeholders are not valid on-chain identifiers.
Address Balances and Native Assets
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/addresses/$ADA_ADDRESS"The address information endpoint exposes an amount collection containing asset units and quantities. ADA is represented by the unit lovelace; 1 ADA equals 1,000,000 lovelace. Native asset quantities are integer base units, not automatically human-readable token amounts.
Keep quantities as strings or arbitrary-precision integers rather than floating-point numbers. For example:
const info = await cardanoGet(`/addresses/${encodeURIComponent(address)}`);
const ada = info.amount.find(item => item.unit === 'lovelace');
const lovelace = BigInt(ada?.quantity ?? '0');This reads the balance of one payment address. It does not automatically aggregate all addresses controlled by a wallet or include staking rewards.
Address UTXOs
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/addresses/$ADA_ADDRESS/utxos"The UTXO route is documented. Before using it for coin selection, verify the live response contains the output references, values, and any datum or reference-script fields required by your transaction builder. Compare UTXOs by transaction hash and output index, not by array position.
The public route reference does not currently list pagination parameters for this method. If your existing integration uses page, count, or order, test whether they are honored and verify that no UTXOs are omitted. Do not assume address-history pagination applies to every endpoint.
Transaction History and Pagination
curl --fail-with-body -sS -G \
-H "api-key: $NOWNODES_API_KEY" \
--data-urlencode 'page=1' \
--data-urlencode 'count=100' \
--data-urlencode 'order=asc' \
"$NOWNODES_ADA_REST_URL/addresses/$ADA_ADDRESS/transactions"The address transaction history reference specifies page, count (maximum 100), order, from, and to. The range filters accept a block number or a block number followed by a transaction index (block_number:tx_index). Set ordering explicitly instead of relying on provider defaults.
For backfills, fix an upper block boundary to avoid pagination drift as new blocks arrive:
const tip = await cardanoGet('/blocks/latest');
const addressPath = `/addresses/${encodeURIComponent(address)}/transactions`;
let page = 1;
while (true) {
const rows = await cardanoGet(addressPath, {
page, count: 100, order: 'asc', to: tip.height
});
if (!Array.isArray(rows)) throw new Error('Unexpected history response');
if (rows.length === 0) break;
// Upsert rows by transaction hash for this address.
// Persist the checkpoint only after the database write succeeds.
page += 1;
}Add a page limit and repeated-page detection in production. Reconcile recent blocks to account for chain rollbacks. This example assumes the live response has been validated as an array of transaction records.
Transaction Details and UTXOs
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/txs/$ADA_TX_HASH"
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/txs/$ADA_TX_HASH/utxos"
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/txs/$ADA_TX_HASH/metadata"Use transaction details for block references, fees and validity information; use the transaction UTXO route to retrieve inputs and outputs after checking its live schema. For exchange deposits, derive the credited value from outputs belonging to your deposit addresses, not from the total transaction output amount.
Staking and Native Assets
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/accounts/$ADA_STAKE_ADDRESS"
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/pools/$ADA_POOL_ID"
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/assets/$ADA_ASSET"Use a Bech32 stake address for the account route, a pool ID for the pool route, and the concatenation of the policy ID and hexadecimal asset name for the asset route. Do not substitute an asset fingerprint or ticker for the asset identifier.
See the account, pool and asset references. Validate reward accounting, delegation state, native asset quantities, and metadata handling separately.
Protocol Parameters
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/epochs/latest/parameters"Transaction builders need current protocol parameters. Validate the fee coefficients, minimum UTXO calculation inputs, execution prices, cost models, and other fields consumed by your library against the live response. Do not replace them with hard-coded values. Refresh cached parameters around epoch transitions and protocol updates.
The REST route is documented. Ogmios also exposes queryLedgerState/protocolParameters as a separate interface with its own response format.
9. Migrate Transaction Submission and Script Evaluation
Connect to Ogmios
Install a WebSocket CLI if needed:
npm install -g wscatConnect to NOWNodes:
wscat -c "$NOWNODES_ADA_OGMIOS_URL/$NOWNODES_API_KEY"Send this JSON text frame after the connection opens:
{"jsonrpc":"2.0","method":"queryNetwork/tip","id":1}Verify the returned result and compare the node tip with the REST indexer. A small lag can occur because the interfaces expose different data layers. Ogmios methods are JSON-RPC messages over a WebSocket connection, not HTTP POST requests to a wss:// URL.
Transaction Submission
Blockfrost uses POST /tx/submit with a signed transaction encoded as CBOR bytes:
curl --fail-with-body -sS \
-X POST \
-H "project_id: $BLOCKFROST_PROJECT_ID" \
-H 'Content-Type: application/cbor' \
--data-binary @signed-tx.cbor \
"$BLOCKFROST_BASE_URL/tx/submit"This legacy example assumes signed-tx.cbor contains raw CBOR bytes, not a text envelope or hexadecimal string.
With NOWNodes, send the following message to the open Ogmios WebSocket:
{
"jsonrpc": "2.0",
"method": "submitTransaction",
"params": {
"transaction": { "cbor": "SIGNED_TRANSACTION_CBOR_HEX" }
},
"id": 2
}Replace SIGNED_TRANSACTION_CBOR_HEX with the actual hexadecimal serialization of a fully signed Cardano transaction (without a 0x prefix). If your old application stores raw CBOR bytes, convert them to hex first, for example buffer.toString('hex') in Node.js.
A successful Ogmios submission returns the transaction ID in result.transaction.id. Update any code that expects the original Blockfrost response to be a JSON string containing the transaction hash.
Submission success is not confirmation. Check inclusion through GET /txs/{hash} or your chain-sync worker. A newly submitted transaction may not immediately appear in the REST indexer.
Plutus Script Evaluation
Replace Blockfrost's /utils/txs/evaluate with the documented Ogmios evaluation method:
{
"jsonrpc": "2.0",
"method": "evaluateTransaction",
"params": {
"transaction": { "cbor": "TRANSACTION_CBOR_HEX" }
},
"id": 3
}Evaluation does not broadcast the transaction. For flows that supply extra UTXOs, pass additionalUtxo using the Ogmios schema, not the original Blockfrost request body. Consult the method reference for the value, datum, and reference-script representation.
The evaluation response uses Ogmios's result structure. Adapt your parser to map redeemer identifiers and execution budgets (memory and CPU) to your transaction builder. Do not assume the Blockfrost evaluation response can be used unchanged. Recalculate fees and script integrity data as required after evaluation and before signing.
Node.js WebSocket Adapter
For an application-level migration, install ws:
npm install wsThe following minimal adapter opens a connection for each request. It is suitable for initial integration tests; for sustained production traffic, reuse connections and route responses by request ID.
// cardano-ogmios.mjs
import WebSocket from 'ws';
import { randomUUID } from 'node:crypto';
export function ogmiosRequest(method, params, timeoutMs = 30000) {
const base = process.env.NOWNODES_ADA_OGMIOS_URL;
const key = process.env.NOWNODES_API_KEY;
if (!base || !key) throw new Error('Missing Ogmios configuration');
const url = `${base.replace(/\/+$/, '')}/${encodeURIComponent(key)}`;
const id = randomUUID();
return new Promise((resolve, reject) => {
const socket = new WebSocket(url, { handshakeTimeout: timeoutMs });
let settled = false;
const finish = (error, result) => {
if (settled) return;
settled = true;
clearTimeout(timer);
if (socket.readyState === WebSocket.CONNECTING) socket.terminate();
else if (socket.readyState === WebSocket.OPEN) socket.close();
if (error) reject(error);
else resolve(result);
};
const timer = setTimeout(() => {
const error = new Error('Ogmios request timed out');
error.code = 'ETIMEDOUT';
finish(error);
}, timeoutMs);
socket.on('error', () => finish(new Error('Ogmios connection failed')));
socket.on('close', () => finish(new Error('Ogmios connection closed')));
socket.once('open', () => {
const request = { jsonrpc: '2.0', method, id };
if (params !== undefined) request.params = params;
socket.send(JSON.stringify(request), error => {
if (error) finish(new Error('Ogmios send failed'));
});
});
socket.on('message', data => {
let message;
try { message = JSON.parse(data.toString()); }
catch { return finish(new Error('Invalid Ogmios response')); }
if (message.id !== id) return;
if (message.error) {
const error = new Error(message.error.message ?? 'Ogmios RPC error');
error.code = message.error.code;
error.data = message.error.data;
return finish(error);
}
if (!Object.hasOwn(message, 'result')) {
return finish(new Error('Missing Ogmios result'));
}
finish(null, message.result);
});
});
}
export async function submitTransaction(signedCborHex) {
if (!/^(?:[0-9a-f]{2})+$/i.test(signedCborHex)) {
throw new Error('Expected signed transaction CBOR as hex');
}
const result = await ogmiosRequest('submitTransaction', {
transaction: { cbor: signedCborHex }
});
const txId = result?.transaction?.id;
if (!txId) throw new Error('Missing transaction ID');
return txId;
}
export function evaluateTransaction(cborHex, additionalUtxo) {
if (!/^(?:[0-9a-f]{2})+$/i.test(cborHex)) {
throw new Error('Expected transaction CBOR as hex');
}
const params = { transaction: { cbor: cborHex } };
if (additionalUtxo !== undefined) params.additionalUtxo = additionalUtxo;
return ogmiosRequest('evaluateTransaction', params);
}Start with a read-only smoke test:
import { ogmiosRequest } from './cardano-ogmios.mjs';
const tip = await ogmiosRequest('queryNetwork/tip');
console.log(tip);When a transaction is explicitly approved for broadcasting, load the signed bytes and call the submission adapter:
import { readFile } from 'node:fs/promises';
import { submitTransaction } from './cardano-ogmios.mjs';
const signedCbor = await readFile('signed-tx.cbor');
const txId = await submitTransaction(signedCbor.toString('hex'));
console.log(txId);Do not broadcast test transactions to Mainnet accidentally. Test your complete signing and submission flow on a confirmed test environment first. Never send private signing keys to the API.
10. Migrate Indexers, Webhooks, IPFS, and Mempool Flows
REST-Based Indexing
If you already poll Blockfrost, retain the polling architecture and replace the documented routes. Useful reads include /blocks/latest, /blocks/{hash_or_number}, /blocks/{hash_or_number}/txs, and /txs/{hash}.
curl --fail-with-body -sS \
-H "api-key: $NOWNODES_API_KEY" \
"$NOWNODES_ADA_REST_URL/blocks/$ADA_BLOCK_HASH/txs"Set ADA_BLOCK_HASH to a known block hash. Verify the complete block transaction list and any pagination required. Persist a block hash and slot checkpoint; reconcile the recent chain after restarts and avoid crediting the same output more than once.
Ogmios Chain Sync
For applications that need continuous block processing, use the same Ogmios WebSocket endpoint. Start with queryNetwork/tip, then call findIntersection using a known point from your persisted checkpoint. For example, construct this message from your stored slot and hash:
const intersection = {
jsonrpc: '2.0',
method: 'findIntersection',
params: { points: [{ slot: checkpoint.slot, id: checkpoint.hash }] },
id: 1
};Send it on an open connection and wait for a successful response. On that same connection, request the next block:
{"jsonrpc":"2.0","method":"nextBlock","id":2}Continue sending nextBlock after processing each response. This is a stateful protocol, not an eth_subscribe-style subscription. Do not use the one-shot adapter from section 9 for this workflow.
Handle both roll-forward and rollback events. Keep a history of recent checkpoints so you can find an earlier common point when the latest checkpoint no longer intersects. After a disconnect, reconnect, find an intersection again, and resume processing. Commit checkpoints together with indexed data.
References: findIntersection and nextBlock.
Webhooks
If Blockfrost delivers notifications to your application, migrate that delivery pipeline independently. A polling or chain-sync worker can filter transactions, persist events to a queue, and deliver your own webhooks.
Use the transaction hash and output index as an idempotency key for UTXO-based deposit events. Implement delivery retries, event deduplication, and rollback reconciliation. Preserve the webhook payload contract if downstream consumers depend on it.
IPFS
IPFS storage and gateway requests are separate from Cardano node access. The Cardano API reference does not document an IPFS replacement. Move pins, files, gateway URLs, and upload credentials to a dedicated IPFS service. Verify that required content is retrievable by CID before December 30, 2026.
Mempool
The NOWNodes Ogmios interface documents acquireMempool, nextTransaction, hasTransaction, sizeOfMempool, and releaseMempool. Use them when you need a node's mempool snapshot and transaction monitoring. Keep the session on the same connection, release it after use, and acquire a fresh snapshot as required. Check the method-specific schemas in the Cardano reference.
A node's mempool is not a global pending-transaction view. Do not treat pending transactions as confirmed deposits.
11. Optional: GraphQL and Additional Ledger Queries
You do not need to switch to GraphQL just to migrate REST reads. However, if you need a different data query pattern, NOWNodes exposes the Cardano GraphQL endpoint.
curl --fail-with-body -sS \
-X POST \
-H "api-key: $NOWNODES_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"query":"query GetTip { cardano { tip { number slotNo hash } } }","operationName":"GetTip"}' \
"$NOWNODES_ADA_GRAPHQL_URL"This query reads the chain tip. GraphQL can return an HTTP 200 response that contains an errors array, so inspect the payload rather than relying solely on HTTP status. For additional fields, check the live GraphQL schema before implementing your queries.
Ogmios also documents ledger state queries, including queryLedgerState/protocolParameters, queryLedgerState/utxo, and other methods in the Cardano reference. These are separate interfaces with different schemas, not transparent substitutes for every Blockfrost route.
If you require historical or governance data, verify the exact endpoints, available history, and response fields rather than assuming archive access or full parity with the original API.
12. Retries and Rate Limits
Review your current Blockfrost traffic and choose a NOWNodes plan that covers normal polling, peak requests, backfills, and bursts. Confirm limits in your dashboard rather than assuming that the two services use the same quotas or rate-limit semantics.
Add exponential backoff with jitter for transient read failures. This example uses the REST wrapper from section 7:
export async function withReadRetry(fn, maxAttempts = 5) {
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try {
return await fn();
} catch (error) {
const retryable =
error.status === 429 ||
(error.status >= 500 && error.status <= 599) ||
error.name === 'TimeoutError' ||
error.code === 'ETIMEDOUT' ||
['ECONNRESET', 'ETIMEDOUT', 'UND_ERR_CONNECT_TIMEOUT', 'EAI_AGAIN']
.includes(error.cause?.code);
if (!retryable || attempt === maxAttempts) throw error;
const retryAfter = error.retryAfter;
let serverDelay = 0;
if (retryAfter != null) {
const seconds = Number(retryAfter);
serverDelay = Number.isFinite(seconds)
? Math.max(0, seconds * 1000)
: Math.max(0, Date.parse(retryAfter) - Date.now()) || 0;
}
// A long server delay belongs in a scheduler, not a hot retry loop.
if (serverDelay > 60000) throw error;
const backoff = Math.min(8000, 500 * 2 ** (attempt - 1));
const jitter = Math.floor(Math.random() * 250);
await new Promise(resolve =>
setTimeout(resolve, Math.max(serverDelay, backoff + jitter))
);
}
}
}Example:
const block = await withReadRetry(() => cardanoGet('/blocks/latest'));Do not retry invalid credentials, malformed inputs, or unsupported routes indefinitely. Error bodies may be plain text or JSON, so avoid assuming a single Blockfrost error schema.
Do not use the generic read-retry wrapper for submission. If the connection drops after sending a signed transaction, the outcome may be unknown. Persist the expected transaction ID and signed bytes before submission, check the chain and (where appropriate) mempool, and reconcile before attempting to rebroadcast the same signed transaction. Do not automatically rebuild or sign a new transaction in response to a timeout.
13. Production Rollout
Move your traffic in phases:
- Inventory required endpoints and classify unsupported or unverified features.
- Create and secure the NOWNodes API key.
- Test REST reads against known Mainnet blocks, transactions, and addresses.
- Compare selected production reads in shadow mode. Never shadow-broadcast writes.
- Move a small share of read traffic to NOWNodes, then increase it as metrics stabilize.
- Validate coin selection, transaction building, signing, script evaluation, and transaction submission.
- Migrate indexers, webhooks, and IPFS separately; verify checkpoints and deduplication.
- Remove the old provider before its network shutdown deadline.
For REST reads, use the CARDANO_PROVIDER switch from section 7. Manage submission and evaluation adapters separately; do not assume the same feature flag automatically switches their transport and response parser.
Monitor request success rates, p95 latency, authentication failures, throttling, node/indexer lag, missing UTXOs, submission outcomes, confirmation delays, and chain-sync rollbacks.
Rollback to Blockfrost is only available while the corresponding network is still online. After its shutdown, use a tested independent fallback or a controlled degraded mode rather than pointing your application at the retired endpoint. Never silently switch between Mainnet and a testnet.
14. Troubleshooting
| Symptom | Possible cause | Fix |
|---|---|---|
401 Unauthorized | API key rejected | Check the key and its access |
422 with missing-key message | api-key header not sent | Add the NOWNodes header to REST requests |
404 or unexpected route response | Old /api/v0 prefix, incorrect path, missing resource, or unlisted route | Check the full URL and reference |
400 Bad Request | Invalid identifier or query parameter | Check address, hash, and filter format |
| Missing UTXOs | Pagination, state change, or parser mismatch | Verify live response and reconcile against a fixed state where possible |
| Incorrect balance | Lovelace conversion, missing native assets, or address scope | Preserve integer precision and aggregate only intended addresses |
429 Too Many Requests, if returned | Throttling | Respect limits and use read backoff |
5xx | Temporary gateway or backend failure | Retry reads with backoff; monitor persistent failures |
| Ogmios handshake failure | Incorrect URL or key, connection problem | Use wss://ada-ogmios.nownodes.io/wss/{key} and verify access |
| Submission rejected | Invalid CBOR, stale inputs, invalid fees, or wrong network | Inspect the Ogmios error and revalidate the transaction |
| Transaction not visible after submission | Pending inclusion or indexer lag | Reconcile by transaction ID; do not immediately rebuild |
| Evaluation parser fails | Different Ogmios result schema | Map redeemers and execution budgets to your builder |
| Missing or duplicate indexed events | Incorrect checkpoint, retry, or rollback handling | Resume from intersection and use idempotent writes |
| GraphQL HTTP 200 with errors | GraphQL query-level failure | Inspect errors and validate the schema |
15. Final Checklist
Before removing Blockfrost from your application, confirm:
- All required REST endpoints are covered and use the correct base URL and
api-keyheader. - The actual network is verified; testnet traffic is isolated from Mainnet.
- Balances, native assets, transaction history, staking data, and UTXOs match expected on-chain data.
- Pagination, response schemas, error handling, and integer precision are validated against live responses.
- Transaction submission and Plutus evaluation work through the Ogmios adapter, if required.
- Transaction confirmation, reconnects, chain rollbacks, and indexer recovery are tested.
- Webhooks, IPFS, and other provider-specific features have verified replacements, if used.
- Rate limits, retries, monitoring, and a post-shutdown fallback are configured.
- NOWNodes API credentials are stored securely and obsolete Blockfrost credentials are revoked after cutover.
Get your API key in the NOWNodes dashboard and explore the Cardano API documentation to begin migrating your application.