@thruputchain/client
    Preparing search index...

    Interface Transport

    Minimal JSON-RPC transport contract used by all SDK actions.

    Implement this interface to plug the SDK into a custom runtime, test harness, or request pipeline. The transport is responsible for sending a JSON-RPC method name and named params object, then returning the raw decoded result value.

    interface Transport {
        request<T = unknown>(
            method: string,
            params?: RpcParams,
            options?: TransportRequestOptions,
        ): Promise<T>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Send one JSON-RPC request and return the decoded result value.

      Type Parameters

      • T = unknown

        Expected JSON-RPC result type before action-level parsing.

      Parameters

      Returns Promise<T>