# Function process

- process(options): Process<Resources.Resource<"networks"> | undefined>

- Issue GraphQL requests and eth_getBlockByNumber requests to determine if any existing Network resources are ancestor or descendant of the connected Network.

  Iteratively, this queries all possibly-related Networks for known historic block. For each possibly-related Network, issue a corresponding web3 request to determine if the known historic block is, in fact, the connected blockchain's record of the block at that historic height.

  This queries @truffle/db for possibly-related Networks in batches, keeping track of new candidates vs. what has already been tried.

  #### Parameters

  - ##### options: {
    disableIndex?: boolean;
    exclude?: Resources.IdObject<"networks">[];
    network: Resources.IdObject<"networks">;
    relationship: "ancestor" | "descendant";
    }

    - ##### `Optional` disableIndex?: boolean

    - ##### `Optional` exclude?: Resources.IdObject<"networks">[]

    - ##### network: Resources.IdObject<"networks">

    - ##### relationship: "ancestor" | "descendant"

  #### Returns Process<Resources.Resource<"networks"> | undefined>

  - Defined in packages/db/src/network/query/relation.ts:26

Generated using TypeDoc