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

    Interface WaitForDerivativeStatusParams

    What waitForDerivativeStatus polls with.

    interface WaitForDerivativeStatusParams {
        personalServerUrl: string;
        derivedScope: string;
        grantId?: string;
        signer: WriteSignerSource;
        audience?: string;
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        headers?: HeadersInit;
        timeoutMs?: number;
        pollIntervalMs?: number;
        signal?: AbortSignal;
        account?: `0x${string}`
        | Account;
    }

    Hierarchy (View Summary)

    Index

    Properties

    personalServerUrl: string

    Personal Server origin, e.g. https://ps.example.com.

    derivedScope: string

    The derived scope whose question to observe.

    grantId?: string

    A grant covering the derived scope, sent as the signed grantId claim. Omit only when the signer is the Personal Server's owner, who is authorized without one.

    Reader key: a viem LocalAccount, WalletClient, or { signMessage }.

    audience?: string

    Web3Signed audience; defaults to personalServerUrl.

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

    fetch to use; 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>

    headers?: HeadersInit

    Extra request headers.

    timeoutMs?: number

    Give up after this long (default 120s).

    pollIntervalMs?: number

    Wait between polls when the server names no retry time (default 2s). A retryAfterSeconds from the server replaces this outright, longer or shorter: it is when the next compute actually happens.

    signal?: AbortSignal

    Aborts the wait, and the request in flight with it: the signal is passed to every poll, so an abort during a stalled request does not sit until the transport gives up.

    account?: `0x${string}` | Account

    Account to sign with when the viem wallet client has no hoisted account (browser wallets). Ignored for other signer shapes.