Generated gRPC-web client for the Xplore Aggregator service, providing TypeScript definitions and client implementations for interacting with Xplore's cross-chain aggregation. Version 1.18.2 includes support for aggregate calls and transaction record retrieval. This package is auto-generated from protobuf definitions and is primarily used in browser-based applications via gRPC-web. It ships with TypeScript types and is released as needed from the monorepo at github.com/routerprotocol/xplore-types. Unlike general-purpose gRPC clients, this one is specific to Xplore's API and handles protobuf serialization, metadata, and callbacks.
npm install xplore-grpc-web-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating an AggregatorClient, constructing a XploreRequest with a ChainToken, and making an aggregateCall with a callback.
Use full deep import paths for each module.
Use ES module imports (import syntax). If using CommonJS, use dynamic import().
Install grpc-web and google-protobuf explicitly: npm install grpc-web google-protobuf
Wrap in a Promise if you prefer async/await: new Promise((resolve, reject) => client.aggregateCall(req, {}, (err, res) => err ? reject(err) : resolve(res)))Consider using plain objects or modern protobuf libraries like protobuf-es.
Use 'xplore-grpc-web-client/aggregator_pb_service' or other deep paths.
Use import { AggregatorClient } from 'xplore-grpc-web-client/aggregator_pb_service'Use import syntax instead of require().