MBL-KRW
KaiaMBL price in KRW, published onchain on Kaia.
Latest answer
Offchain answers, sampled every 5m. The onchain answer is written from them on price moves or heartbeats.
Contracts
| Network | Proxy | Aggregator |
|---|---|---|
| Kaia Mainnet | 0x7299582b4f17b212002106d1ef7cabb904c61d0e | 0x6a982a3411ae63bc4720b7770e02c31190cdb8a9 |
| Kaia Kairos | 0x8c0e3c0329d35a038d460aae792333b8baab3e3c | 0x98b134a4873f1f9ba73106c3337d263e52be8e36 |
Read through the proxy. Its address stays the same when the aggregator behind it is replaced.
Read it onchain
On Kaia Mainnet this feed is written at least every 60s, and sooner when the price moves.
import {IFeedProxy} from "@bisonai/orakl-contracts/v0.2/src/interfaces/IFeedProxy.sol";
contract PriceConsumer {
// MBL-KRW on Kaia Mainnet
IFeedProxy constant FEED = IFeedProxy(0x7299582B4F17B212002106D1Ef7CABB904C61D0e);
function latest() external view returns (int256 answer, uint8 decimals) {
(, int256 a, uint256 updatedAt) = FEED.latestRoundData();
require(block.timestamp - updatedAt < 2 minutes, "stale");
return (a, FEED.decimals());
}
}The example rejects answers older than 2 minutes. In quiet markets updates can pause, so set a limit your protocol can tolerate.
Read it offchain
The Data Availability Layer (DAL) serves the latest signed answer over REST and WebSocket, with a proof you can submit onchain yourself.
curl https://dal.mainnet.orakl.network/latest-data-feeds/MBL-KRW \
-H "X-API-Key: $API_KEY"websocat wss://dal.mainnet.orakl.network/ws -H "X-API-Key: $API_KEY"
{"method": "SUBSCRIBE", "params": ["submission@MBL-KRW"]}Every DAL request needs an API key. Email business@orakl.network with your project name and the feeds you need. See the DAL docs for all endpoints and the onchain submission flow.