# Identifying smart contract creations, from another smart contract

**URL:** <https://community.bitquery.io/t/identifying-smart-contract-creations-from-another-smart-contract/99>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [May 31, 2021, 1:54am UTC](https://community.bitquery.io/t/identifying-smart-contract-creations-from-another-smart-contract/99 "2021-05-31T01:54:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiron](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/chiron/32/51_2.png) [@chiron](https://community.bitquery.io/u/chiron)\
**Post date:** [May 31, 2021, 1:54am UTC](https://community.bitquery.io/t/identifying-smart-contract-creations-from-another-smart-contract/99/1 "2021-05-31T01:54:54Z")

</div>

hi, trying to identify smart contracts created by 1 particular smartContract (which is a factory smartContract). With the following code.  
Filtering for address, and method (or perhaps I should be using event?):

query MyQuery {  
ethereum {  
smartContractCalls(  
options: {desc: “block.height”, limit: 10}  
smartContractMethod: {is: “Contract Creation”}  
smartContractAddress: {is: “0xCB06dF7F0Be5B8Bb261d294Cf87C794EB9Da85b1”}  
) {  
block {  
height  
timestamp {  
time  
}  
}  
smartContract {  
contractType  
address {  
annotation  
address  
}  
currency {  
name  
symbol  
decimals  
tokenType  
}  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [May 31, 2021, 5:45am UTC](https://community.bitquery.io/t/identifying-smart-contract-creations-from-another-smart-contract/99/2 "2021-05-31T05:45:36Z")

</div>

Can you show me a transaction where it created another smart contract?

---

<div class="post-metadata">

**Author:** ![chiron](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/chiron/32/51_2.png) [@chiron](https://community.bitquery.io/u/chiron)\
**Post date:** [May 31, 2021, 6:03am UTC](https://community.bitquery.io/t/identifying-smart-contract-creations-from-another-smart-contract/99/3 "2021-05-31T06:03:06Z")

</div>

> **[MooniswapDeployer | 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b1](https://etherscan.io/address/0xcb06df7f0be5b8bb261d294cf87c794eb9da85b1#internaltx)**
>
> The Contract Address 0xcb06df7f0be5b8bb261d294cf87c794eb9da85b1 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

Under internal transactions

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [May 31, 2021, 11:53am UTC](https://community.bitquery.io/t/identifying-smart-contract-creations-from-another-smart-contract/99/4 "2021-05-31T11:53:31Z")

</div>

Try this

```auto
{
  ethereum {
    smartContractCalls(options: {desc: "block.height", limit: 10}, 
      smartContractMethod: {is: "Contract Creation"},
      caller: {is: "0xCB06dF7F0Be5B8Bb261d294Cf87C794EB9Da85b1"}
      smartContractType: {is: Token}) {
      block {
        height
        timestamp {
          time
        }
      }
      smartContract {
        contractType
        address {
          address
          annotation
        }
        currency {
          name
          symbol
          decimals
          tokenType
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![chiron](https://sea2.discourse-cdn.com/flex016/user_avatar/community.bitquery.io/chiron/32/51_2.png) [@chiron](https://community.bitquery.io/u/chiron)\
**Post date:** [June 10, 2021, 4:35am UTC](https://community.bitquery.io/t/identifying-smart-contract-creations-from-another-smart-contract/99/5 "2021-06-10T04:35:06Z")

</div>

cheers Gaurav! just saw this… think i doubled up
