
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
xplore-grpc-web-client
Advanced tools
Generated gRPC-web client for Xplore, providing TypeScript definitions and client implementations for the Xplore Aggregator service.
npm install xplore-grpc-web-client
import { AggregatorClient } from "xplore-grpc-web-client/aggregator_pb_service";
import {
XploreRequest,
ChainToken,
} from "xplore-grpc-web-client/aggregator_pb";
// Create a client
const client = new AggregatorClient("https://your-grpc-web-server.com");
// Create a request
const request = new XploreRequest();
const inputToken = new ChainToken();
inputToken.setChainId("chain-1");
inputToken.setAddress("0x123...");
request.setInputToken(inputToken);
// Make a call
client.aggregateCall(request, {}, (err, response) => {
if (err) {
console.error(err);
return;
}
console.log(response.toObject());
});
import { AggregatorClient } from "xplore-grpc-web-client/aggregator_pb_service";
import { TransactionRecordRequest } from "xplore-grpc-web-client/aggregator_pb";
const client = new AggregatorClient("https://your-grpc-web-server.com");
const request = new TransactionRecordRequest();
request.setTransactionHash("0xabcdef...");
client.getTransactionRecord(request, {}, (err, record) => {
if (err) {
console.error(err);
return;
}
console.log(record.toObject());
});
Client for the Aggregator service.
Methods:
aggregateCall(request: XploreRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: XploreResponse | null) => void): grpc.ClientUnaryCall
getTransactionRecord(request: TransactionRecordRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: TransactionRecord | null) => void): grpc.ClientUnaryCall
Request for the AggregateCall method.
Properties:
inputToken: ChainToken
outputToken: ChainToken
amountIn: string
amountOutMin: string
slippageTolerancePercent: number
recipientAddress: string
senderAddress: string
exactOut: boolean
timeoutMs: number
generateDepositAddress: boolean
allowedNodes: string[]
Response from the AggregateCall method.
Properties:
amountIn: string
amountOut: string
priceImpact: number
route: RouteStep[]
executionTime: number
gasEstimate: number
depositAddress: string
value: string
transactionData: TransactionData
Represents a token on a specific chain.
Properties:
chainId: string
address: string
isNative: boolean
MIT
FAQs
Generated gRPC-web client for Xplore
The npm package xplore-grpc-web-client receives a total of 136 weekly downloads. As such, xplore-grpc-web-client popularity was classified as not popular.
We found that xplore-grpc-web-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.