Polkadot Apps
    Preparing search index...
    • Create a statement store transport.

      Strategy (Host API first):

      1. Try the Host API via @polkadot-apps/host — uses the container's native statement store protocol (binary, not JSON-RPC). This is the production path.
      2. If the host is unavailable (not inside a container, product-sdk not installed), fall back to a direct WebSocket connection using @polkadot-api/substrate-client with @novasamatech/sdk-statement.

      Parameters

      • config: { endpoint?: string }

        Configuration with an optional fallback endpoint.

      Returns Promise<StatementTransport>

      A configured StatementTransport.

      If no connection method is available.