Documentation
    Preparing search index...

    Interface SuiGraphQLClientOptions<Queries>

    interface SuiGraphQLClientOptions<
        Queries extends Record<string, GraphQLDocument>,
    > {
        fetch?: (
            input: RequestInfo | URL,
            init?: RequestInit,
        ) => Promise<Response>;
        headers?: Record<string, string>;
        mvr?: MvrOptions;
        network: Network;
        queries?: Queries;
        restrictedMoveCalls?: readonly string[];
        subscriptionUrl?: string;
        url: string;
    }

    Type Parameters

    Index
    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    Type Declaration

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

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    headers?: Record<string, string>
    network: Network
    queries?: Queries
    restrictedMoveCalls?: readonly string[]

    package, package::module or package::module::function entries that transactions built with this client can't call. A per-call restrictedMoveCalls on build or toJSON takes precedence. Defaults to DEFAULT_RESTRICTED_MOVE_CALLS.

    subscriptionUrl?: string

    SSE endpoint; defaults to the query URL with /subscriptions appended.

    url: string