What is an oracle

What is an oracle

Blockchain oracles are entities that connect blockchains to external systems, allowing smart contracts to execute depending on real-world inputs and outputs.

Oracles give the Web 3.0 ecosystem a method to connect to existing data sources, legacy systems, and sophisticated calculations. DONs enable the implementation of hybrid smart contracts, in which on-chain code and off-chain infrastructure are coupled to provide complex decentralized applications (dApps) that react to real-world events and interact with traditional systems.

Let's say Lucy and Mark wish to bet on the outcome of a sporting event. The $60 total is held in escrow by a smart contract, with Lucy betting $30 on team A and Mark betting $30 on team B. How does the smart contract know whether to give the money to Lucy or Mark after the game is over? The explanation is that it requires an oracle method to obtain precise match outcomes off-chain and securely send them to the blockchain.

The blockchain oracle dilemma highlights a key drawback of smart contracts: they are unable to communicate with data and systems outside of the blockchain context. External resources are referred to as "off-chain," whilst data currently recorded on the blockchain is referred to as "on-chain." Blockchains achieve their most beneficial qualities by being purposefully separated from external systems, such as high consensus on the authenticity of user transactions, avoidance of double-spending assaults, and network downtime mitigation. To securely interoperate with off-chain services from a blockchain, an extra piece of infrastructure known as an oracle must be installed.

Because the great majority of smart contract use cases, such as DeFi, need knowledge of real-world data and events occurring off-chain, solving the oracle problem is critical. As a result, oracles broaden the sorts of digital agreements that blockchains may enable by providing a universal gateway to off-chain resources while maintaining blockchain security. Asset pricing in banking, weather information in insurance, unpredictability in gaming, IoT sensors in supply chain, ID verification in government, and many more sectors benefit from integrating oracles with smart contracts.

Because the data given by oracles to blockchains directly influences the outcomes of smart contracts, it is crucial that the oracle mechanism be valid if the agreement is to execute as planned.

A single point of failure is introduced by blockchain oracle systems that use a centralized entity to transmit data to a smart contract, negating the fundamental goal of a decentralized blockchain application. If the single oracle goes down, the smart contract will either not have access to the data it needs to run or will run incorrectly due to outdated data.

Worse, if the single oracle is compromised, the data given on-chain may be significantly inaccurate, causing smart contracts to execute incorrectly. This is known as the "garbage in, garbage out" problem, in which faulty inputs result in terrible outputs. Furthermore, because blockchain transactions are automated and irrevocable, a smart contract decision based on erroneous data cannot be undone, implying that user cash may be lost forever. As a result, smart contract applications cannot use centralized oracles.

Xem các trình độ khác

Chúng tôi sử dụng cookie để lưu trữ, truy cập và xử lý dữ liệu cá nhân nhằm mang đến cho bạn trải nghiệm trực tuyến tốt nhất. Bằng cách nhấp vào Chấp nhận cookie, bạn đồng ý lưu trữ tất cả cookie và đảm bảo hiệu suất trang web tốt nhất. Bạn có thể sửa đổi tùy chọn cookie hoặc rút lại sự đồng thuận bằng cách nhấp vào Cài đặt cookie. Để tìm hiểu thêm về cookie và mục đích của chúng, hãy đọc Chính sách Cookie and Chính sách quyền riêng tư

Cài đặt cookie


Quản lý cookie


Cookies là gì?

Cookie là các tệp văn bản nhỏ cho phép chúng tôi và các nhà cung cấp dịch vụ của chúng tôi nhận dạng độc nhất trình duyệt hoặc thiết bị của bạn. Cookie thường hoạt động bằng cách chỉ định một số duy nhất cho thiết bị của bạn và được lưu trữ trên trình duyệt của bạn bởi các trang web mà bạn truy cập cũng như các nhà cung cấp dịch vụ bên thứ ba cho các trang web đó. Theo thuật ngữ cookie, các công nghệ khác như SDK, pixel và bộ nhớ cục bộ sẽ được xem xét.


Nếu được kích hoạt

Chúng tôi có thể nhận ra bạn là khách hàng và cho phép các dịch vụ, nội dung và quảng cáo tùy chỉnh, hiệu quả của dịch vụ và nhận dạng thiết bị để tăng cường bảo mật.
Chúng tôi có thể cải thiện trải nghiệm của bạn dựa trên phiên làm việc trước
Chúng tôi có thể theo dõi tuỳ chọn của bạn và cá nhân hóa các dịch vụ
Chúng tôi có thể cải thiện hiệu suất của trang web.


Nếu vô hiệu hóa

Chúng tôi sẽ không thể nhớ các phiên trước của bạn, điều đó sẽ không cho phép chúng tôi điều chỉnh trang web theo tùy chọn của bạn
Một số tính năng có thể không khả dụng và trải nghiệm người dùng bị giảm khi không có cookies


Rất cần thiết có nghĩa là không thể cung cấp các chức năng thiết yếu của trang web nếu không sử dụng chúng. Vì những cookie này rất cần thiết để các tính năng và dịch vụ của trang web hoạt động bình thường và an toàn, nên bạn không thể từ chối sử dụng những công nghệ này. Bạn vẫn có thể chặn chúng trong trình duyệt của mình, nhưng nó có thể khiến các tính năng cơ bản của trang web không hoạt động.

  • Đặt tùy chọn quyền riêng tư
  • Đăng nhập an toàn
  • Bảo mật kết nối trong suốt quá trình sử dụng dịch vụ
  • Điền biểu mẫu

Các công nghệ theo dõi hiệu suất và phân tích để phân tích cách bạn sử dụng trang web.

  • Trang được xem nhiều nhất
  • Tương tác với nội dung
  • Phân tích lỗi
  • Thử nghiệm và đo lường hiệu quả các thiết kế khác nhau

Trang web có thể sử dụng các công nghệ quảng cáo và marketing của bên thứ ba.

  • Quảng bá dịch vụ của chúng tôi trên các nền tảng và trang web khác
  • Đo mức độ hiệu quả của các chiến dịch của chúng tôi