advanced 45 min

Price Oracles

Publish and consume on-chain pricing data using OracleSet transactions. Aggregate prices from multiple oracle feeds and manage oracle lifecycle.

Overview

Publish and consume on-chain pricing data using OracleSet transactions. Aggregate prices from multiple oracle feeds and manage oracle lifecycle.

Resources

Assignments

1. Create a Price Oracle

Use OracleSet to publish a BTC/USD price on-chain. Update it with a new price and verify the data.

2. Aggregate Prices

Use get_aggregate_price to combine data from multiple oracle sources. Discuss why aggregation matters.

Prerequisites

Complete these before starting this module:

Assignments

1

Create a Price Oracle

Use OracleSet to publish a BTC/USD price on-chain. Update it with a new price and verify the data.

2

Aggregate Prices

Use get_aggregate_price to combine data from multiple oracle sources. Discuss why aggregation matters.