Package Logo
contract_creation
contract-creation@v0.2.0
README

Subgraph: Contract Creation

Subgraph to track smart contract creation events.

Data Includes

  • Contract Address
  • Creator Address
  • Creator Factory
  • Creator Transaction Hash
  • Code
  • Init

Subgraphs

Chain Subgraph ID
Ethereum REPLACE_ME

GraphQL

{
  contract_creation(
    orderBy: block_number
    orderDirection: desc
  ) {
    block_number
    block_time
    block_date
    contract_address
    creator_address
    creator_factory
    creator_tx
    code
  }
}

Graph

graph TD;
  map_contract_creation[map: map_contract_creation];
  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> map_contract_creation;
  sf.ethereum.type.v2.Block[source: sf.ethereum.type.v2.Block] --> map_contract_creation;
  db_out[map: db_out];
  map_contract_creation --> db_out;
  graph_out[map: graph_out];
  map_contract_creation --> graph_out;

Modules

Name: map_contract_creation
Initial block: 0
Kind: map
Input: source: sf.substreams.v1.Clock
Input: source: sf.ethereum.type.v2.Block
Output Type: proto:contract_creation.v1.Events
Hash: 55c8099c4dc52893720f63f99efb871920c88b01

Name: db_out
Initial block: 0
Kind: map
Input: map: map_contract_creation
Output Type: proto:sf.substreams.sink.database.v1.DatabaseChanges
Hash: b09283b1a9800ede86e60f5c8ce34f3d8be8e484

Name: graph_out
Initial block: 0
Kind: map
Input: map: map_contract_creation
Output Type: proto:sf.substreams.sink.entity.v1.EntityChanges
Hash: e148d3545043518d7b1072f941c33e0b69a6c0cb
)
Documentation
Modules
Maps icon
Maps

map
map_contract_creation

a7cc97e1e20ccd6a1c4b2f50a137367f9613c58b
map map_contract_creation (
clocksf.substreams.v1.Clock
)  -> contract_creation.v1.Events
substreams gui contract-creation@v0.2.0 map_contract_creation

map
db_out

fa6bd1093cd20309fdc2b6d1f0ea2c5788c677a9
substreams gui contract-creation@v0.2.0 db_out

map
graph_out

165f34e043b9bda75293d5ff601c506039e97973
substreams gui contract-creation@v0.2.0 graph_out
Protobuf

Protobuf Docs Explorer

contract_creation.v1