# Query to find Contract Deployment Transaction?

**URL:** <https://community.bitquery.io/t/query-to-find-contract-deployment-transaction/437>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [August 24, 2021, 4:38am UTC](https://community.bitquery.io/t/query-to-find-contract-deployment-transaction/437 "2021-08-24T04:38:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stcroix](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@stcroix](https://community.bitquery.io/u/stcroix)\
**Post date:** [August 24, 2021, 4:38am UTC](https://community.bitquery.io/t/query-to-find-contract-deployment-transaction/437/1 "2021-08-24T04:38:04Z")

</div>

Hello,

Would it be possible to provide an example query that can show the block, time and transaction that a smart contract was created/deployed on the Ethereum/BSC chain?

Thanks

---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [August 24, 2021, 7:08am UTC](https://community.bitquery.io/t/query-to-find-contract-deployment-transaction/437/2 "2021-08-24T07:08:14Z")

</div>

The following query shows the newly created/deployed smart contract tokens in the BSC network.

```auto
{
  ethereum(network: bsc){
    smartContractCalls(
      smartContractMethod: {is: "Contract Creation"}
      options: {limit: 10, asc: "smartContract.currency.name"}
      date: {since: "2021-07-01"}
    ){
      smartContract{
        address{
          address
        }
        currency{
          name
          symbol
        }
      }
      block{
        height
        timestamp{
          iso8601
        }
      }
      transaction{
        hash
      }
    }
  }
}

```

> **[creation of a smart contract](https://graphql.bitquery.io/ide/4hAGkBxAM9)**
>
> block height, timestamp & transaction hash of newly created smart contracts in BSC network of Ethereum blokchain.

The following query shows the creation/deployment of a particular smart contract token. Here, we have queried for the **FROGSWAP** smart contract token’s creation date along with the block’s height & transaction hash.

```auto
{
  ethereum(network: bsc){
    smartContractCalls(
      smartContractAddress: {is: "0xfa8417df1b48c55358242895b68a0b9cd301bf5a"}
      smartContractMethod: {is: "Contract Creation"}
    ){
      block{
        height
        timestamp{
          iso8601
        }
      }
      transaction{
        hash
      }
      smartContract{
        currency{
          symbol
        }
      }
    }
  }
}

```

> **[creation of a particular smart contract token](https://graphql.bitquery.io/ide/ZssBmqzdyF)**
>
> block height, timestamp & transaction hash

---

<div class="post-metadata">

**Author:** ![stcroix](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@stcroix](https://community.bitquery.io/u/stcroix)\
**Post date:** [August 24, 2021, 9:32am UTC](https://community.bitquery.io/t/query-to-find-contract-deployment-transaction/437/3 "2021-08-24T09:32:18Z")

</div>

Legendary as always. Thanks @sayon! 😃

---

<div class="post-metadata">

**Author:** ![mbajpai](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mbajpai](https://community.bitquery.io/u/mbajpai)\
**Post date:** [September 1, 2021, 11:36am UTC](https://community.bitquery.io/t/query-to-find-contract-deployment-transaction/437/5 "2021-09-01T11:36:57Z")

</div>


