Functions Subscription

Setup a Chainlink Functions Subscription

Connect MetaMask

Go to Chainlink Functions 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

Connect MetaMask to Chainlink Functions
Click the MetaMask icon the left

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

Click "Next"

Now click "Connect":

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:

Time to create a Chainlink subscription

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)

Create Functions Subscription

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

Click "Confirm"

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:

Approve the subscription by cliicking "Confimr"

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:

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:

You will need to ass funds to pay for the subscription

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

Adding LINK to our subscription

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:

Confirm the adding of funds

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

Successfully funded our subscription with LINK

Last updated