♈
Bootcamp-2024
  • Intro
  • 1. Blockchain & Wallet Fundamentals
    • Blockchain Introduction
    • State Machines
    • Cryptography
    • Distributed Networks
    • Game Theory
    • What is Web3
    • MetaMask Wallet Installation
    • Transferring Tokens with MetaMask
  • 2. Smart Contract & Solidity Fundamentals
    • Using Remix
    • Create, compile and publish your first smart contract
    • Interact with already published smart contracts
    • Blockchain Explorer
    • Verify source code on Etherscan
  • 3. Oracles, ERC20 & Chainlink Data Feeds
    • Oracles
    • Create & Deploy ERC20
    • Data Feeds
  • 4. Cross-Chain Tokens With Chainlink CCIP
    • Setting up MetaMask
    • Getting USDC Testnet Tokens
    • Create Smart Contract In Remix
    • Compile and Deploy
    • Approve USDC
    • Send LINK to your Contract
    • Send USDC from Fuji to Sepolia
    • USDC on Sepolia
  • 5. Mentoring Session
  • 6. NFTs & Chainlink Automation
    • NFT Basics
    • Dynamic NFTs
    • Creating an NFT Smart Contract
    • Deploying Your Dynamic NFTs
  • 7. Chainlink CCIP & Cross-Chain NFT dApps
    • Create and deploy CCIP NFT Contracts
    • Mint on Source Chain
    • Fund Contract
    • Mint On Sepolia From Fuji
    • Mint from Destination 2 - Base Sepolia
  • 8. Random Numbers with Chainlink VRF
    • Introduction to Chainlink VRF
    • Hands On Game Using VRF
  • 9. Off-Chain Data with Chainlink Functions
    • Chainlink Functions Playground
    • Setting up MetaMask
    • Remix
    • Functions Subscription
    • Creating The Functions Consumer Contract
    • Sending a Request from Remix
    • City Weather and Examples
    • City Weather on Chainlink Functions
  • 10. Connecting the 🌏 with Chainlink
  • Glossary
Powered by GitBook
On this page
  • Connect MetaMask
  • Create a Subscription and Add Funds
  1. 9. Off-Chain Data with Chainlink Functions

Functions Subscription

Setup a Chainlink Functions Subscription

PreviousRemixNextCreating The Functions Consumer Contract

Last updated 1 year ago

Connect MetaMask

Go to and perform the following actions:

  1. Make sure you are on Avalanche Fuji Testnet from the drop-down menu

  2. Click the “Connect wallet” icon at the top right to connect your MetaMask wallet

MetaMask will pop-up to connect your wallet, click "Next":

Now click "Connect":

Create a Subscription and Add Funds

Once you are connected to Chainlink Functions and on the Avalanche Fuji Testnet, click the “Create Subscription” button:

The next steps are:

  • add your email address (#1),

  • put in “Bootcamp Project” for “Subscription name” (#2) and

  • accept the privacy policy and click the “Create Subscription” button (#3)

MetaMask will pop-up with a “Confirm” request, so click the “Confirm” button at the bottom right:

You need to approve the Functions terms of service and the subscription creation on the next MetaMask window, click the “Confirm” button at the bottom right to approve this request:

After the transaction to approve the subscription, you need to sign the message to save your subscription name and email address. Click the “Sign” button at the bottom right to sign the message:

Upon a successful subscription creation, you need to add LINK to your Functions Subscription to fund the Chainlink oracles to run Chainlink Functions . Click the “Add funds'' button at the bottom:

On the following page, put in 5 for the LINK amount (#1) and then click the “Add funds” blue button (#2):

You will now need to confirm the transaction to send LINK to your Subscription. MetaMask will pop-up and click the “Confirm” button at the bottom right to approve adding funds:

Once done, you can refresh the page, and see your subsciption's details and LINK balance.

Chainlink Functions
Connect MetaMask to Chainlink Functions
Click the MetaMask icon the left
Click "Next"
Click "Connect"
Time to create a Chainlink subscription
Create Functions Subscription
Click "Confirm"
Approve the subscription by cliicking "Confimr"
Sign the message
You will need to ass funds to pay for the subscription
Adding LINK to our subscription
Confirm the adding of funds
Successfully funded our subscription with LINK