Get Started

ODATANO is an OData V4 API for public blockchains. ODATANO covers Cardano, NIGHTGATE covers Midnight, ANALYTICS spans both. Four ways in:

WayWhat you needStart here
Hosted APIone key from the API pageHosted API
AI agentsthe same key in your MCP clientAI agents
SAP CAP pluginnpm install into your CAP appODATANO
Self-hostedthe repo or the Docker imageNIGHTGATE and Standalone

Hosted and self-hosted serve the same routes. Integrate against the hosted API first, move to your own instance later without changing a path.

Hosted API

ODATANO, NIGHTGATE and ANALYTICS run behind one key from api.odatano.dev. Calls go to api.preprod.odatano.dev or api.preview.odatano.dev, one key for both networks, nothing to install.

1. Get a key

Sign in with a Cardano or Midnight wallet on the API page. The first key comes with free calls. Codes and packs paid with ADA over x402 add more.

2. Call it

The key goes as a bearer token. Cardano:

curl https://api.preprod.odatano.dev/odata/v4/cardano/NetworkInformation \
  -H "Authorization: Bearer oda_..."

curl -X POST https://api.preprod.odatano.dev/odata/v4/cardano-transaction/BuildSimpleAdaTransaction \
  -H "Authorization: Bearer oda_..." \
  -H "Content-Type: application/json" \
  -d '{"senderAddress":"addr_test1...","recipientAddress":"addr_test1...","lovelaceAmount":10000000}'

Midnight and analytics, same key:

curl "https://api.preprod.odatano.dev/odata/v4/midnight/Blocks?\$orderby=height%20desc&\$top=1" \
  -H "Authorization: Bearer oda_..."

curl https://api.preprod.odatano.dev/odata/v4/analytics/ChainOverview \
  -H "Authorization: Bearer oda_..."

Every forwarded call is listed with an example response in the API reference. Routes, key lanes and limits: Hosted API.

AI agents (MCP)

Two MCP servers put both chains in front of an agent. One .mcp.json for Claude Code, Claude Desktop, Cursor or any MCP client:

{
  "mcpServers": {
    "odatano": {
      "command": "npx",
      "args": ["-y", "@odatano/core-mcp"],
      "env": { "ODATANO_ACCESS_KEY": "oda_..." }
    },
    "nightgate": {
      "command": "npx",
      "args": ["-y", "@odatano/nightgate-mcp"],
      "env": { "ODATANO_ACCESS_KEY": "oda_..." }
    }
  }
}

The gateway is the default URL. The agent reads, builds and verifies; a human, a wallet or a sponsor signs. Tools and flows: MCP servers.

ODATANO as a CAP plugin

@odatano/core is a SAP CAP plugin for Cardano. It exposes blocks, addresses, UTxOs and pools as OData entities and builds transactions as OData actions. Needs Node.js 22.5 or newer and @sap/cds 10.

Without a CAP project yet:

npm i -g @sap/cds-dk
cds init my-app && cd my-app

1. Install

npm install @odatano/core @cap-js/sqlite

2. Configure

In package.json:

{
  "cds": {
    "requires": {
      "[development]": { "auth": { "kind": "dummy" } },
      "db": { "kind": "sqlite", "credentials": { "url": "db.sqlite" } },
      "odatano-core": {
        "network": "preview",
        "backends": ["koios"]
      }
    }
  }
}

Koios needs no account. Ogmios with a local node and Blockfrost are the alternatives; their secrets go into .env, not into package.json. The [development] auth block lets cds watch accept requests without a JWT. In production your own authentication assigns the roles Read, Transact, Sign and Admin.

3. Run

cds deploy --to sqlite
cds watch

Seven services register under /odata/v4/cardano*. First request:

curl http://localhost:4004/odata/v4/cardano/NetworkInformation

Services, transactions, Plutus and configuration: ODATANO guide.

NIGHTGATE self-hosted

NIGHTGATE runs as a server of its own, from the container image or a clone of the repository. A CAP app talks to it over OData, or with @odatano/nightgate-tx.

docker run -d --init -p 127.0.0.1:4004:4004 \
  -e ENCRYPTION_KEY=$(openssl rand -hex 32) \
  -e NIGHTGATE_HTTP_PASSWORD=change-me \
  -e NIGHTGATE_NODE_URL='ws://<node-host>:9944' \
  -e NIGHTGATE_INDEXER_HTTP_URL='http://<indexer-host>:8088/api/v4/graphql' \
  -v nightgate-data:/data \
  ghcr.io/odatano/nightgate:latest

The image defaults to mainnet and checks credentials. Every network but preview needs a Midnight node and indexer of its own; NIGHTGATE_NETWORK=preview alone is enough.

Five services register under /odata/v4/midnight, /odata/v4/midnight-indexer, /odata/v4/midnight-analytics, /odata/v4/midnight-admin and /odata/v4/midnight-verify. Write actions are async: they return a job id, you read getJobStatus. Services, the run from a clone and configuration: NIGHTGATE guide.

Standalone

Without a CAP project of your own, ODATANO runs as its own service on port 4004, with the same routes as the plugin.

git clone https://github.com/ODATANO/ODATANO && cd ODATANO
npm ci && npm run clean            # npm ci compiles in place
cp .env.example .env               # NETWORK, BACKENDS (default koios)
npm run db:deploy && npm run cds:watch

Docker for ODATANO, the local cardano-node stack and production set-ups: ODATANO.

Next steps