All news
Articledev.toMatej Plavevski10mo ago

Euro Guesser: A Stellar Oracle Tutorial Using Reflector

A comprehensive tutorial on building a Stellar smart contract that uses Reflector oracle to create a EUR price prediction market. The guide covers contract initialization, oracle integration, storage patterns, token transfers, and verification logic using Soroban.

Smart ContractsOraclesDevelopers
Lumen Loop's take

This tutorial walks developers through building a euro guesser smart contract on Stellar using Soroban. It demonstrates how to integrate Reflector, Stellar's oracle solution, to fetch real-time EUR price data and enable users to bet on price movements over a 5-minute window. The guide covers essential Soroban concepts including the three storage types (temporary, instance, persistent), struct-based data storage, authentication, token balance checking, XLM transfers, and historical price verification to prevent cheating. By the end, developers will have deployed a functional prediction market contract that leverages oracle data for real-world information.

Mentioned projects
2 projects linked
B
Blend CapitalFinancial Protocols
SCFAudited
DeFiLending & BorrowingLiquidity

Blend is a decentralized finance (DeFi) protocol built on Stellar's Soroban smart contract platform, enabling users, DAOs, and i…

View →
R
ReflectorInfrastructure & Services
SCFAudited
OracleMulti Signatures

Decentralized price feed oracle for Stellar DeFi smart contracts to support derivatives, lending, and asset management.

View →