Alchemy Logo

ConnectionConfigSchema

const ConnectionConfigSchema: ZodIntersection<
  ZodUnion<
    [
      ZodObject<
        {
          apiKey: ZodString;
          jwt: ZodOptional<ZodNever>;
          rpcUrl: ZodOptional<ZodNever>;
        },
        "strip",
        ZodTypeAny,
        {
          apiKey: string;
          jwt?: undefined;
          rpcUrl?: undefined;
        },
        {
          apiKey: string;
          jwt?: undefined;
          rpcUrl?: undefined;
        }
      >,
      ZodObject<
        {
          apiKey: ZodOptional<ZodNever>;
          jwt: ZodString;
          rpcUrl: ZodOptional<ZodNever>;
        },
        "strip",
        ZodTypeAny,
        {
          apiKey?: undefined;
          jwt: string;
          rpcUrl?: undefined;
        },
        {
          apiKey?: undefined;
          jwt: string;
          rpcUrl?: undefined;
        }
      >,
      ZodObject<
        {
          apiKey: ZodOptional<ZodNever>;
          jwt: ZodOptional<ZodNever>;
          rpcUrl: ZodString;
        },
        "strip",
        ZodTypeAny,
        {
          apiKey?: undefined;
          jwt?: undefined;
          rpcUrl: string;
        },
        {
          apiKey?: undefined;
          jwt?: undefined;
          rpcUrl: string;
        }
      >,
      ZodObject<
        {
          apiKey: ZodOptional<ZodNever>;
          jwt: ZodString;
          rpcUrl: ZodString;
        },
        "strip",
        ZodTypeAny,
        {
          apiKey?: undefined;
          jwt: string;
          rpcUrl: string;
        },
        {
          apiKey?: undefined;
          jwt: string;
          rpcUrl: string;
        }
      >,
    ]
  >,
  ZodObject<
    {
      chainAgnosticUrl: ZodOptional<ZodString>;
    },
    "strip",
    ZodTypeAny,
    {
      chainAgnosticUrl?: string;
    },
    {
      chainAgnosticUrl?: string;
    }
  >
>;

Defined in: aa-sdk/core/src/client/schema.ts:22

Was this page helpful?