Query to find Contract Deployment Transaction?

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

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

{
  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
      }
    }
  }
}

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.

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

Legendary as always. Thanks @sayon! :smiley:

1 Like