Creating The Functions Consumer Contract
Last updated
Last updated
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:
Next paste in your deployed GettingStartedFunctionsConsumer.sol
contract's address (#1) you copied earlier and click "Add consumer" (#2):
Click the "Confirm" button in MetaMask to approve:
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!
In the next section, you will need your Subscription ID so copy it and head back to Remix.