# How could I write an index to query a list of contracts on the network? (DEPRECATED)

**URL:** <https://forum.fuel.network/t/how-could-i-write-an-index-to-query-a-list-of-contracts-on-the-network-deprecated/90>\
**Category:** General\
**Tags:** faqs\
**Created:** [December 5, 2022, 4:56pm UTC](https://forum.fuel.network/t/how-could-i-write-an-index-to-query-a-list-of-contracts-on-the-network-deprecated/90 "2022-12-05T16:56:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sarah/32/13_2.png) [@sarah](https://forum.fuel.network/u/sarah)\
**Post date:** [December 5, 2022, 4:56pm UTC](https://forum.fuel.network/t/how-could-i-write-an-index-to-query-a-list-of-contracts-on-the-network-deprecated/90/1 "2022-12-05T16:56:01Z")

</div>

To query a list of contracts on the network, you could write an index that looks at _all_ receipts/transactions (not just receipts/transactions for a certain contract) and indexes each of the unique contract IDs that it sees.
