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.
--- ## Deployments ### Testnet (Miden 0.14) | Role | Account ID | Explorer | |------------|--------------------------------------|----------| | Oracle | `0xec7e450b91bf690015ad79573689f1` | [view](https://testnet.midenscan.com/account/0xec7e450b91bf690015ad79573689f1) | | Publisher1 | `0xaa9c9ad8583c3b0064eff7356152bd` | [view](https://testnet.midenscan.com/account/0xaa9c9ad8583c3b0064eff7356152bd) | | Publisher2 | `0x39c45ece7de124002191469753074f` | [view](https://testnet.midenscan.com/account/0x39c45ece7de124002191469753074f) | | Publisher3 | `0x022c8db22d56b1000643d54faf7487` | [view](https://testnet.midenscan.com/account/0x022c8db22d56b1000643d54faf7487) | > Addresses change between testnet iterations. This table is the source of truth. --- ## Quick start **Consume prices (Rust):** ```bash 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):** ```python 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](https://docs.pragma.build/pragma/miden/introduction). --- ## License MIT โ see [LICENSE](LICENSE).