Chainlink Functions
Smart Contract Programmer
Basic example of using Chainlink functions to execute JavaScript and store the result in a Solidity smart contract.
0:00 Intro 0:38 Get MATIC and LINK for testnet 1:35 Install Deno and NPM packages 2:13 Get API keys 3:30 Set encrypted environment variables 5:07 Code explanation 5:28 JS file (calculation-example.js) 6:36 Configuration file (Functions-request-config.js) 7:53 Solidity contract (FunctionsConsumer.sol) 9:15 Simulate function 9:36 Deploy FunctionsConsumer.sol 10:28 Create Chainlink subscription 11:57 Send request to execute JS file 13:03 Check subscription and requests 13:24 Check response
Chainlink Functions starter https://github.com/smartcontractkit/functions-hardhat-starter-kit
Chainlink Functions architecture https://docs.chain.link/chainlink-functions/resources/architecture#overview
Off-chain consensus https://docs.chain.link/architecture-overview/off-chain-reporting
Notes https://github.com/t4sk/notes/blob/main/chainlink/functions.md
More notes For first-time viewers they will need to accept the Beta (ToS) on the frontend UI before they can programmatically create a subscription.
#Solidity #SmartContract #Ethereum #スマートコントラクト
Follow https://odysee.com/@SmartContractProgrammer:8 https://twitter.com/ProgrammerSmart https://discord.gg/bt8FK2wkcW https://t.me/smartcontractprogrammer https://smartcontractprogrammer.com ... https://www.youtube.com/watch?v=BKdFSIyDjhc
61023130 Bytes