Skip to main content
Work in progress — This integration is under active development. The API described here reflects the target state, not the current release. Reach out on Telegram if you want early access.
Publishers submit price data directly to their own Miden account. The Oracle reads from all registered publishers when computing the median. If you are already publishing on Starknet via pragma-sdk, adding Miden support requires minimal changes — the same pipeline pushes to both networks automatically.

Step 1 — Install

pragma-sdk includes pm-publisher as a dependency. No Rust toolchain required.

Step 2 — Initialize your publisher account

Run this once. It creates your publisher account on Miden and writes your credentials locally.
This creates three files in your working directory:
Back up your keystore/ directory. Losing it means losing access to your publisher account.

Step 3 — Get registered

Share your publisher ID (from pragma_miden.json) with the Pragma team. We will register it on the oracle so your prices are included in the median computation.
Registration is currently manual. Reach out via Discord or Telegram.

Step 4 — Publish prices

Once registered, publish entries as part of your existing data pipeline:
publish_entries is lazy — it reuses existing credentials without calling initialize() again. A failure on one entry does not abort the others.

Starknet + Miden together

If you already run a Starknet publisher, Miden publishing hooks into the same loop with no extra configuration:

Available pairs

Prices use 6 decimal places — multiply the USD value by 1_000_000.

API reference