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

    Interface DerivativeQuestionAuthParams

    Connection, credential and transport shared by every question call.

    The write session is opened on demand and reused for every later call made with the same signer object, Personal Server, audience, grant and fetch; a 401 re-opens it once and replays the call.

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

    Properties

    personalServerUrl: string

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

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

    grantId: string

    The grant the call runs under. It must carry write:<derivedScope>, a bare read entry for the derived scope, and a bare read entry for every source scope.

    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.

    signal?: AbortSignal

    Aborts the request (and, for waitForQuestion, the polling).

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

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