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.Step 3 — Get registered
Share your publisher ID (frompragma_miden.json) with the Pragma team. We will register it on the oracle so your prices are included in the median computation.
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.