This article was first published on Chainlink
At the 2021 ETHDenver Hackathon, Chainlink Bounty Winner Pr!ce used a Chainlink External Adapter to connect off-chain NBA player performance data to a Chainlink oracle for powering a blockchain-based fantasy sports game. This marketplace model can also be applied to other zero-sum performance assets and is a great demonstration of how Chainlink’s configurable and secure oracle infrastructure can be used to connect unique off-chain APIs and custom datasets to smart contracts, enabling competitive applications for sports, gaming, DeFi, and more.
In this post, the Pr!ce team members, Anweshi Anavadya, Ishan Ghimire, Sam Orend, and Jasraj Bedi, explain how they used Chainlink to accurately calculate and deliver NBA player metadata on-chain to create “shares” in the form of semi-fungible ERC-1155 tokens. They also walk through how their dApp called the Chainlink ETH-USD Price Feed to securely distribute prizes to game players.
Meet Pr!ce, a seasonal blockchain-based marketplace that enables users to buy and sell shares in NBA players and even receive dividends for their performance. This post will explain how Pr!ce works from a technical perspective and how our team used Chainlink External Adapters and price oracles to securely fetch external data for our on-chain marketplace.
How Does a Seasonal Marketplace Work?
At the start of the NBA season, Pr!ce issues “shares” of NBA players. What do these shares look like? We built Pr!ce on the Ethereum network, so our shares are ERC-1155 (semi-fungible) tokens. Each token contains metadata that ties it to a specific player. We then visualize this metadata by pulling it with web3.js and creating visualizations of it with React components.
At the start of ...
To keep reading, please go to the original article at: