Quick Start Guide
⏱️ Time Required: ~5 minutes
🎯 Goal: Deploy a contract that reads the live BNB/USD price from ORCAFI
Prerequisites
1
Open Remix IDE
Go to remix.ethereum.org and create a new file called PriceConsumer.sol
2
Copy the Code
Paste the following contract:
3
Deploy & Test
- Compile (Ctrl+S)
- Go to Deploy & Run tab
- Select
Injected Provider - MetaMask - Click Deploy and confirm
- Call
getBnbPriceto see the result!
✅ Success!
You just consumed your first decentralized price feed. The returned value (e.g., 850000000000000000000) represents the price with 18 decimals — so that's $850.00.
