3 Register A CL Functions Subscription
In order to use Chainlink Functions to send request to DON, we need to register our GetGiftcontract as a "consumer" contract. Do the following to register the consumer on Chainlink Functions:
If you've never used the Chainlin Functions web app before, please connect your dev wallet on metamask there and switch to Avalanche Fuji.
Create a Chainlink Functions subscription at Functions app (make sure the you are on the Avalanche Fuji testnet).
Note: If it's the first time your dev wallet address is creating a subscription, you will be asked to sign two transactions, one of which is accepting the Functions ToS required to create and fund subscriptions. This is also the allowlisting step - the wallet that created the subscription is now allowlisted to safely use Chainlink Functions. You must allowlist your dev wallet before you go to the next page to upload your secrets.
Add address of
GetGift.soldeployed in last step as a consumer under that subscription.Fund the subscription with 10 LINK tokens.
Please check more details in Chainlink docs.
Last updated