Ethic Docs
  • 🌟Introduction
  • πŸ”₯Key Statistics
  • πŸŒ•Data Source and Reliability
  • πŸ’«Technical Architecture
  • πŸ‘¨β€πŸ«Products and Services
  • πŸͺ™Tokenomics
  • βš›οΈApplication Scenarios
  • Tutorials
    • πŸ•΅οΈCreate your first Ethic app on EVM
    • πŸ“œCreate a contract and fetch prices from Ethic oracles
    • β˜€οΈDeploy Your Ethic App
  • ⁉️FAQ
  • πŸ”‰Social Media
Powered by GitBook
On this page
  1. Tutorials

πŸ•΅οΈCreate your first Ethic app on EVM

PreviousApplication ScenariosNextCreate a contract and fetch prices from Ethic oracles

Last updated 11 months ago

CtrlK

This tutorial walks through creating a complete application that uses Ethic Price feeds. The application includes a smart contract and an off-chain code invoking the contract.

Please choose your environment to get started:

In this tutorial, we will use real-time Ethic price data to mint an NFT in exchange for $1 of ETH. Our solidity contract will read the price of ETH/USD from Ethic and use it to calculate the amount of ETH required to mint the NFT.

This tutorial will cover the following topics:

Create a contract that reads the ETH/USD price from Ethic using Ethic-sdk-solidity

Learn how to update Ethic prices to avoid Stale data.

Deploy the contract to OP-sepolia testnet.

Update and Fetch price using Ethic-evm-js.

This tutorial is divided into two parts:

Part 1: Create a contract and fetch prices from Ethic oracles.

Part 2: Deploy Your Ethic App