# Get Contract IDs deployed by account

**URL:** <https://forum.fuel.network/t/get-contract-ids-deployed-by-account/6298>\
**Category:** General\
**Created:** [July 18, 2024, 8:35pm UTC](https://forum.fuel.network/t/get-contract-ids-deployed-by-account/6298 "2024-07-18T20:35:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xpluscal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/xpluscal/32/3337_2.png) [@xpluscal](https://forum.fuel.network/u/xpluscal)\
**Post date:** [July 18, 2024, 8:35pm UTC](https://forum.fuel.network/t/get-contract-ids-deployed-by-account/6298/1 "2024-07-18T20:35:05Z")

</div>

What’s the best way to query all contracts deployed by a certain account?

What’s the best way to get all AssetIds a user owns by a given contract?

Thank you

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 19, 2024, 7:01am UTC](https://forum.fuel.network/t/get-contract-ids-deployed-by-account/6298/2 "2024-07-19T07:01:48Z")

</div>

One of the ways to query the data is using our [Graphql API](https://docs.fuel.network/docs/graphql/overview/#rpc-endpoint) and another way is you can use our [indexers](https://docs.subsquid.io/)

---

<div class="post-metadata">

**Author:** ![xpluscal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/xpluscal/32/3337_2.png) [@xpluscal](https://forum.fuel.network/u/xpluscal)\
**Post date:** [July 24, 2024, 3:02am UTC](https://forum.fuel.network/t/get-contract-ids-deployed-by-account/6298/3 "2024-07-24T03:02:23Z")

</div>

Could you help me understand how?

Like I see how I can get which contracts a user has deployed by using the transactionsByOwner and search for ContractCreated output

- But how do I get all assets minted from a specific contract?
- If I know an assetId, how can I get which contract this assetId belongs to?

Example:

- I want to list all NFTs minted from a given contract
- I know all assets a user owns, I want to be able to see which contracts they were minted from

thx!
