Vana SDK - v4.1.0
    Preparing search index...

    Function createJobsClient

    • Create a reusable Node builder client for encrypted Gateway jobs.

      Parameters

      Returns JobsClient

      A client bound to the configured builder and Gateway.

      When configuration or signer shape is invalid.

      This client is Node-only. builderPrivateKey supports the complete flow; builderAccount alone supports submit/status/wait but cannot decrypt, so openResult and readRaw require the raw private key.

      const client = createJobsClient({
      gatewayUrl: "https://gateway.example.com",
      chainId: 14800,
      builderPrivateKey: process.env.BUILDER_PRIVATE_KEY as Hex,
      });
      const result = await client.readRaw({ owner, grantId, scope: "profile" });