RPC
Cardano Ogmios Port

Cardano Ogmios Port

This page provides instructions on how to interact with the Cardano Ogmios service offered by Demeter.

About Ogmios Sync

Ogmios is a lightweight bridge interface for cardano-node. It provides an HTTP / WebSocket API that enables applications to interact with a local cardano-node via JSON+RPC-2.0. Examples and documentation can be found in the GitHub repository (opens in a new tab).

Demeter Implementation

Each Demeter cluster provides highly-available, multi-tenant instances of Cardano Ogmios. Connections to these instances are load balanced. Projects can connect to the instance and receive events from ogmios.

Demeter Ogmios access will consume DCUs from your project's wallet.

Enabling Access

To enable access in your project, you need to add a Cardano Ogmios Port resource:

  1. Login to Demeter.run (opens in a new tab)
  2. Select your project (opens in a new tab)
  3. From your project's dashboard, click "Add Resource"
  4. Find the resource "Cardano Ogmios Port" card and select it
  5. Click "Create Resource"
  6. Select the Cardano network and version you want to access
  7. Click "Create Resource" once again

Getting Started

Once created, your Cardano Ogmios Port resource will present you with the required information to access the Ogmios instance:

  • HTTP Endpoint URL: the publicly accessible hostname of the Ogmios instance by network (eg: NETWORK-VERSION.ogmios-v1.demeter.run)
  • HTTP Authenticated Endpoint URL: the publicly accessible hostname of the Ogmios instance, but with the key set on the hostname without necessary to set it on the header. (eg: KEY.NETWORK-VERSION.ogmios-v1.demeter.run)
  • Api Key: the key to authenticating, will needs to be set on the header (eg: dmtr-api-key: dmtr_ogmios63j21khsjx)

The above value will change for each project depending on your configuration.