Creating The Functions Consumer Contract

Adding a Consumer

Navigate back to the subscription you just created. We need to authorize your freshly-deployed contract as an authorized consumer of your subscription's balance! Click the "Add consumer" button on the right:

Adding a consumer to your subscription

Next paste in your deployed GettingStartedFunctionsConsumer.sol contract's address (#1) you copied earlier and click "Add consumer" (#2):

Paste in your deployed contract's address and add the consumer

Click the "Confirm" button in MetaMask to approve:

Approve to add a consumer

After the consumer is added, click the "Close" button:

Refresh your Subscription dashboard page, and you will see your new consumer of your Chainlink Functions Subscription!

Successfully added a consumer

In the next section, you will need your Subscription ID so copy it and head back to Remix.

Copy your Subscription ID

Last updated