A decentralized oracle for Miden — prices published directly on-chain, aggregated via Foreign Procedure Invocation.
Documentation · Publish Prices · Consume Data
🟢 Live oracle: miden.pragma.build — real-time BTC / ETH / WBTC / USDT / DAI medians, published every Starknet tick by the pragma-sdk price-pusher.
| Role | Account ID | Explorer |
|---|---|---|
| Oracle | 0x7ad4aa02b1816c117e32853e210c28 |
view |
| Publisher | 0x6d37b2d4aedd697140338bb31c67e3 |
view |
Addresses change between testnet iterations. This table is the source of truth.
Consume prices (Rust):
git clone https://github.com/astraly-labs/pragma-miden
cd pragma-miden
cargo run --release -p consume-price
# BTC/USD: $68199.00
Publish prices (Python SDK):
from pragma_sdk.miden.client import PragmaMidenClient, MidenEntry
client = PragmaMidenClient(network="testnet")
await client.publish_entries([
MidenEntry(pair="1:0", price=68199_000000, decimals=6),
])
→ Full integration guides at docs.pragma.build/pragma/miden.
MIT — see LICENSE.
$ claude mcp add pragma-miden \
-- python -m otcore.mcp_server <graph>