Skip to main content
Glama

Binance MCP Server

hashrateResaleList.ts2.44 kB
// src/tools/binance-mining/mining-api/hashrateResaleList.ts import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { miningClient } from "../../../config/binanceClient.js"; import { z } from "zod"; export function registerBinanceHashRateResaleList(server: McpServer) { server.tool( "BinanceHashRateResaleList", "Returns the list of hashRate resale configurations including transfer details such as algorithm, hashrate amount, sender and receiver pool usernames, start and end dates, and status of the transfer.", { pageIndex: z .number() .int() .min(1) .optional() .describe("Page number, default is the first page starting from 1"), pageSize: z .number() .int() .min(10) .max(200) .optional() .describe("Number of records per page, min 10, max 200"), recvWindow: z.number().int().optional().describe("Optional time window for request validity") }, async (params) => { try { const response = await miningClient.restAPI.hashrateResaleList({ ...(params.pageIndex && { pageIndex: params.pageIndex }), ...(params.pageSize && { pageSize: params.pageSize }), ...(params.recvWindow && { recvWindow: params.recvWindow }) }); const data = await response.data(); return { content: [ { type: "text", text: `Successfully return the list of hashRate resale configurations. Response: ${JSON.stringify( data )}` } ] }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return { content: [ { type: "text", text: `Failed to return the list of hashRate resale configurations. ${errorMessage}` } ], isError: true }; } } ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TermiX-official/binance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server