aries_oracle_price
Read the current price from a Chainlink-style Alkanes oracle. Provide the oracle's alkane block, tx, and symbolId to receive priceE8, price, block info, and age.
Instructions
Read the latest price from a Chainlink-style Alkanes price-feed oracle (opcode 10 = GetPrice). Give the oracle alkane id {block,tx} and the symbolId. Returns priceE8 (raw 1e8-scaled u128), price (number), priceBlock, updatedBlock, and ageBlocks (vs current height). Needs a deployed price-feed instance — the feed is a template (see reference/oracles.md), so pass the id you want to read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | ||
| block | Yes | ||
| blockTag | No | ||
| symbolId | Yes | Symbol id registered in the feed (u32) |