Skip to main content
Build & Share · Episode 10·Mock Mode — Testnet Offline

On-Chain ETH Price Feed

HTTP precompile 0x0801 calls CoinGecko inside a TEE, result is settled on Ritual Chain (ID 1979) and stored in the contract — trustlessly.

ETH / USD

0x0801 · CoinGecko · TEE-Verified

TEE Verified
No price data yet — click Refresh

Last Updated

—

Chain Updates

—

Source

CoinGecko

Ritual Wallet
0x532F…3948

Fee Escrow Balance

—RITUAL
PrecompileHTTP (0x0801)
TTL100 blocks (~35s)
Lock Duration10,000 blocks
Est. Fee/call~0.0025 RITUAL

◌ Deposit RITUAL before calling the HTTP precompile. Run depositFees() on the contract.

Chain ID 1979 · Ritual Testnet · No real value

How It Works

HTTP Precompile (0x0801)

TEE executor calls CoinGecko API from inside an enclave

↓

SPC Fulfilled Replay

Response injected into tx — no separate callback needed

↓

RitualWallet Fee

Executor fee deducted from escrow balance atomically

↓

Price Stored On-Chain

latestPrice + timestamp written to EthPriceFeed.sol

Contracts

HTTP Precompile0x0801
RitualWallet0x532F…3948
TEE Registry0x9644…47F
Chain ID1979