aries_oracle_read
Retrieve oracle data from Alkanes contracts by specifying block, transaction, opcode, and optional inputs. Decode output as u128, price, bool, utf8, or raw hex.
Instructions
Read a value from a deployed Alkanes oracle contract via a staticcall-safe view (alkanes_simulate). Give the oracle's alkane id {block,tx}, the read opcode, and any inputs (u128 each). decode shapes execution.data: raw hex (default), u128/u64/u32 (little-endian int as a string), utf8, bool (first byte), or price (16B price ‖ 8B price_block ‖ 8B updated_block). See corpus reference/oracles.md and corpus/oracles/ for each oracle's read opcodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | ||
| block | Yes | ||
| decode | No | ||
| inputs | No | Opcode args (u128 each), e.g. [symbolId] | |
| opcode | Yes | Read opcode, e.g. price feed 10 = GetPrice, block-header 10 = current_height | |
| blockTag | No |