> For the complete documentation index, see [llms.txt](https://cll-devrel.gitbook.io/bootcamp-2024/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cll-devrel.gitbook.io/bootcamp-2024/9.-off-chain-data-with-chainlink-functions/creating-the-functions-consumer-contract.md).

# 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:

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2F5HImYSioOTE0z9gwBXfI%2FaddConsumer.png?alt=media&amp;token=a10fce64-05ce-43ad-8c44-3bfaadaec692" alt=""><figcaption><p>Adding a consumer to your subscription</p></figcaption></figure>

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FScqH9sgdC73140twLsDb%2Fdeployed2.png?alt=media&amp;token=b826bec2-8223-4594-afbd-3b381d2e48a4" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FELIGq1E7COLu9QlAGroW%2FaddConsumer2.png?alt=media&amp;token=e2901ece-1b9f-49b5-8850-e6017b0a47f5" alt=""><figcaption><p>Paste in your deployed contract's address and add the consumer</p></figcaption></figure>

Click the "Confirm" button in MetaMask to approve:

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2Fd72PK2Cf7uDfSA8x12pI%2FapproveConsumer.png?alt=media&amp;token=39a6786a-c4f7-4b07-b999-abadb8200a65" alt=""><figcaption><p>Approve to add a consumer</p></figcaption></figure>

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

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FImItUzY7mgdeHQZ1NoVV%2FconsumerAdded.png?alt=media&amp;token=07bbba84-66a5-44f3-9d37-d2010dc187ab" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2FL9nkNyAzZ2Ib6W6poYc3%2FconsumerAdded2.png?alt=media&amp;token=9a24100d-c514-4891-acee-f728bf8fffdb" alt=""><figcaption><p>Successfully added a consumer</p></figcaption></figure>

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

<figure><img src="https://62720068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNQrWPKDHvXg0HQjwzHbY%2Fuploads%2Fpj98Jij2Lw1iYZ39xKU7%2FsubscriptionID.png?alt=media&amp;token=cf405560-e09a-4d2e-b3bd-41e2acc48428" alt=""><figcaption><p>Copy your Subscription ID</p></figcaption></figure>
