โ›“
ChainLink
Start using Chainlink in your smart contracts and front-end today ๐Ÿ˜

Branch Info

Author: pharo.eth ๐Ÿฅท๐Ÿฝ Source code: https://github.com/scaffold-eth/scaffold-eth-examples/tree/chainlink-tutorial-1 Intended audience: Beginners/Intermediate Topics: Scaffold-eth basics, Chainlink, API Integration, VRF, Price Feeds

Getting Started & Setting Up

From a terminal or code editor of your choice start by cloning the repo.
1
git clone -b chainlink-tutorial-1 https://github.com/scaffold-eth/scaffold-eth-examples.git app
2
cd app
Copied!
Update all the packages.
1
yarn install
Copied!
Generate a deployer account and mnemonic.
1
yarn generate
Copied!
You can ignore the warnings here.
You need to fund your account with ETH to deploy on the Kovan network. By running the following command it will show you the deployer address and the balance.
Testnet ETH is available from:
1
yarn account
Copied!
Now you are ready to deploy your contracts.
1
yarn deploy
Copied!
Start the front-end application.
1
yarn start
Copied!
When your application starts at http://localhost:3000 you will see your contracts interfaces. These have all been pre-added in the App.jsx file.
You still need to fund the RandomNumberConsumer contract with LINK so copy the address and send it some test LINK.
Side Quest - use deploy.js to fund the contract with LINK after funding deployer account.
ToDo: gather the screen shots, show how I designed a dice roll with the RNG result in solidity.
โ€‹

Using an Aggregator or Price Feed

โ€‹
โ€‹

Calling any API

โ€‹
โ€‹
โ€‹
โ€‹