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

    Interface JobsClientOptions

    Configuration captured by createJobsClient.

    interface JobsClientOptions {
        gatewayUrl: string;
        chainId: number;
        builderPrivateKey?: `0x${string}`;
        builderAccount?: {};
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        ecies?: ECIESProvider;
        now?: () => Date;
        escrowContract?: `0x${string}`;
    }
    Index

    Properties

    gatewayUrl: string

    Gateway base URL; its origin is the Web3Signed audience.

    chainId: number

    Vana chain ID used by the owner identity lookup.

    builderPrivateKey?: `0x${string}`

    Raw builder private key, used for signing and result decryption.

    builderAccount?: {}

    viem local account used for signing. Its public key supports submission, but without builderPrivateKey this client cannot decrypt results: openResult and readRaw reject while submit/status/wait remain usable.

    fetch?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    HTTP implementation; defaults to globalThis.fetch.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    ECIES implementation; defaults to the Node provider.

    now?: () => Date

    Clock used when constructing a job deadline.

    escrowContract?: `0x${string}`

    DataPortabilityEscrow address for the payment signature's EIP-712 domain. Defaults to the deployment this SDK ships for chainId; override only when pointing at a non-canonical escrow.