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

    Interface GatewayLineageParams

    Lineage read against the gateway, by data point id.

    interface GatewayLineageParams {
        version?: string | number;
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        headers?: HeadersInit;
        gatewayUrl: string;
        dataPointId: `0x${string}`;
        signer: WriteSignerSource;
        account?: `0x${string}`
        | Account;
        grantId?: string;
    }

    Hierarchy

    • LineageRequestOptions
      • GatewayLineageParams
    Index

    Properties

    version?: string | number

    Read the lineage as of this version (a positive decimal integer); omitted = the current version, or the last version that carried lineage when the current one is a tombstone.

    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.

    gatewayUrl: string

    Gateway origin, e.g. https://dp-rpc.vana.org.

    dataPointId: `0x${string}`

    The data point whose lineage to read (see deriveDataPointId).

    The key the request is signed with (Web3Signed, audience = the gateway origin). The signer decides the view: the owner or one of its servers gets the full view; a registered builder holding a live grant covering the data point's scope gets that grant's view; anyone else is refused.

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

    Account for a viem wallet client without a hoisted account.

    grantId?: string

    The grant whose view to read, sent lowercased as the signed grantId claim (never as a query parameter). An owner or server uses it to fetch the view a builder's grant sees; a builder needs it to see anything.