Oracle APIs for Smart Contracts

Get off-chain data for your blockchain applications

Oracle Providers

Oracle Data Type Networks Decentralization
Chainlink Price, VRF, Keepers 30+ ⭐⭐⭐⭐⭐
Band Protocol Price, Sports, Custom 40+ ⭐⭐⭐⭐
API3 First-party oracles 20+ ⭐⭐⭐⭐
Tellor Price, Custom 10+ ⭐⭐⭐⭐
Umbrella Price, Weather 15+ ⭐⭐⭐

Chainlink Features

  • Price Feeds - Real-time asset prices
  • VRF - Verifiable Randomness
  • Keepers - Automated smart contracts
  • CCIP - Cross-chain interoperability

Use Cases

  • DeFi lending - Collateral pricing
  • Gaming - Random NFT drops
  • Prediction markets - Event outcomes
  • Insurance - Weather data

Getting Oracle Data

// Chainlink Price Feed
AggregatorV3Interface priceFeed = AggregatorV3Interface(
    0x547a5141... // ETH/USD address
);

function getLatestPrice() public view returns (int) {
    (
        ,
        int price,
        ,
        ,
    ) = priceFeed.latestRoundData();
    return price;
}

Integrate Oracle Data

Get reliable off-chain data for your smart contracts.