Updated 446 days ago

KlayOracle

Securely Integrate Offchain data with Klaytn Smart Contracts

  • Crypto / Web3
  • Klaytn

Learn More

Visit KlayOracle Website

Visit Developer Documentation

What is KlayOracle

KlayOracle adopts the design used by leading and existing oracles to bring offchain data to Klaytn Smart Contracts. Its straight forward to setup to access offchain data such as prices, sport data, weather data, random numbers or any external API usecase suites your project purpose.

Why Use KlayOracle

Reliable Data Feed: Get reliable price, weather, and external API data for your Defi and GameFi apps. Additionally, obtain uniquely generated numbers for your smart contract use cases.

Customizable Adapter: Without relying on external data feeds, which may be fraudulent, you can quickly set up adapters to aggregate API data for any off-chain data you need to allow.

Self Hosted Node: KlayOracle currently relies on you configuring your own adapters and node. to manage the node or nodes and have faith that you are receiving expected off-chain data that is genuine.

Products

Hackathon Milestone

Goal Status Comment
Figma Design for Website Done https://bit.ly/3LWehun
KlayOracle Website Done https://klayoracle.com
KlayOracle v0.0.5 Adapter Done https://bit.ly/3C8fLNy
KlayOracle v0.0.5 Oracle Contract Done https://bit.ly/3SMqPGY
KlayOracle v0.0.5 Node Node https://bit.ly/3SMqPGY
Developer Documentation Done https://github.com/alofeoluwafemi/klay-oracle
KlayOracle Baobab Deploy Done
Video Tutorial Done https://youtu.be/nC-LlVKuNL0

Post Hackathon Plans

  • Build and release KlayOracle Node V1.0 for testnet
  • Build a token reward system for Node runner
  • Build a token reward system for Node runner
  • Get beta tester to build using our oracle on the test net
  • Smart contract and code audit
  • Live launch Q1 2023

Usecase

  • NFT: To generate randomly unique numbers for NFT ID.
  • Gaming: Fetch sport data from Oracle, for a betting smart contract.
  • Defi: Get Price pair for your staking or exchange smart contract.

Architechture

KlayOracle Architechture

Components

Q&A

Firstly, we would like to point out that Chainlink is currently only active on the Klaytn Baobab Testnet and has not yet been made available on Mainnet, despite being in development since August 2021. They presently have two price feeds, primarily KLAY/USD and WEMIX/USD, and as you can expect, we also have both on KlayOracle and the Baobab Testnet. By building primarily on Klaytn at the beginning, we can more quickly launch features critically needed by developers on the Klaytn blockchain.

Secondly, our guiding principle is simplicity… Right now, anyone with a little technical know-how can set up a KlayOracle node and adapter more easily than they would Chainlink nodes and jobs. While this is expected with the simple data feeds we have now, KlayOracle’s simplicity is something we aim to maintain even with the addition of more complex data feeds.

We believe that by lowering the barrier to setting up nodes, oracles and adapters, we can onboard many more participants on the network. An increased number of nodes will help maintain secure and decentralized data on the Klaytn network, as more participants supply data, instead of just a few participants.

We envision ourselves as a less complex, less expensive alternative to Chainlink that also achieves genuine decentralization by enabling users to host more nodes (think x10 - x100 nodes than chainlink runs).

Testnet Baobab Price Oracles

Node

0xcAD0444951A5faB031b62fcF717eCb5a1e8d7Dc7

KLAY/USD

Oracle: 0xCC4377b912c4517Fe895817c6a7c6937D92A70B3
Adapter ID: efbdab54419511edb8780242ac120002
Price Consumer Sample Contract: 0x8e892CE230eEe07598eed68EA326e308A3d2687D

WEMIX/USD

Oracle: 0xb56c6b973688A8fbA3D6bB536b7CdFFC7b46252A
Adapter ID: be498ee0521011edbdc30242ac120002
Price Consumer Sample Contract: 0x6aB624819D2082801bA2d44a64DbE1201b608e4f