# Dashboard of my Contracts (count) in production

**URL:** <https://forum.canton.network/t/dashboard-of-my-contracts-count-in-production/6134>\
**Category:** App Development\
**Tags:** daml, json-api, ledger-api\
**Created:** [February 16, 2023, 7:00pm UTC](https://forum.canton.network/t/dashboard-of-my-contracts-count-in-production/6134 "2023-02-16T19:00:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [February 16, 2023, 7:00pm UTC](https://forum.canton.network/t/dashboard-of-my-contracts-count-in-production/6134/1 "2023-02-16T19:00:23Z")

</div>

Hi Daml’ers

I want to create a dashboard of my current Count of Contracts that are in my Production environment.  
What would be best approach for acquiring this data (in Live mode) ?

(I am on 1.x Daml SDK and Postgresql database)

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [February 17, 2023, 8:12am UTC](https://forum.canton.network/t/dashboard-of-my-contracts-count-in-production/6134/2 "2023-02-17T08:12:10Z")

</div>

I would recommend to build a small integration that runs that count for you, by asking for the ACS and keeping it up to date, ready to be served to downstream consumers. If you are open to try out new software, you might want to have a look at the [Custom Views library](https://docs.daml.com/app-dev/custom-views/index.html), which makes it easier to write this kind of integrations by taking over some concerns from the developer (e.g. keeping track of the latest observed offset to make sure the integration can be stopped and restarted if needed).

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [February 17, 2023, 8:13am UTC](https://forum.canton.network/t/dashboard-of-my-contracts-count-in-production/6134/3 "2023-02-17T08:13:09Z")

</div>

I just realized that you are on Daml 1.x, so Custom Views are probably not the way forward. But building the integration I described should still be relatively easy to accomplish using the Java bindings.

---

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [February 17, 2023, 2:48pm UTC](https://forum.canton.network/t/dashboard-of-my-contracts-count-in-production/6134/4 "2023-02-17T14:48:17Z")

</div>

Thanks.I will give it a try with Java Bindings
