๐
๐
๐
๐
Scaffold-eth | Docs
Searchโฆ
๐
Welcome to Scaffold-eth
Getting Started
๐ฅ
Installation
๐
Quick Start
๐ฉโ๐ฌ Deploying Your Contracts
๐ข
Shipping Your App
Toolkit
๐
The Scaffold-eth Stack
๐งฐ
Libraries, Components & Services
๐ฉโ๐ซ Troubleshooting
๐ง
Infrastructure
Speed run challenge course
๐งโโ๏ธ About the Speed Run
๐ผ Simple NFT
๐ฅฉ
Decentralized Staking App
๐ต
Token Vendor
โ๏ธ Multi-Sig
๐ฎ
Implementing an Oracle
๐
Minimum Viable DEX
๐จ
NFT Marketplace
๐ฑ
Create a Stream
๐
Indexer & Node
Example Branches
๐
Overview
๐ฅ
Common Web3 Patterns
๐ต
DeFi
๐ซ
NFTs
๐
Security
๐ง
Infrastructure
โ
ChainLink
โ๏ธ Layer 2 and Scaling
Community
Projects built with Scaffold-eth
Contribute to Scaffold-eth
BuidlGuidl.com
Support
Getting help
Changelog
Support Scaffold-eth & BuidlGuidl
Powered By
GitBook
โ
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:
Kovan:
https://faucet.kovan.network/
โ
Rinkeby:
https://faucet.rinkeby.io/
โ
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.
Testnet LINK is available from
https://kovan.chain.link/
โ
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
โ
โ
Using Existing Chainlink Jobs
โ
โ
Example Branches - Previous
Infrastructure
Next - Example Branches
โ๏ธ Layer 2 and Scaling
Last modified
5mo ago
Copy link
Contents
Branch Info
Getting Started & Setting Up
Using an Aggregator or Price Feed
Calling any API
Using Existing Chainlink Jobs