Skip to main content
Glama

get_x402_revenue

Retrieve aggregate revenue statistics from all paywalls, showing total payments and revenue breakdown by blockchain and token.

Instructions

Get aggregate x402 revenue statistics across all your paywalls. Returns total payments and revenue broken down by chain and token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:1363-1372 (registration)
    Tool registration for 'get_x402_revenue'. Registers the tool with the MCP server, providing its name, description, empty input schema (no parameters), and the handler function.
    server.tool(
      'get_x402_revenue',
      'Get aggregate x402 revenue statistics across all your paywalls. ' +
        'Returns total payments and revenue broken down by chain and token.',
      {},
      async () => {
        const data = await api('/x402/revenue');
        return jsonResponse(data);
      },
    );
  • Handler function for 'get_x402_revenue' tool. Makes an API call to '/x402/revenue' endpoint to fetch aggregate x402 revenue statistics and returns the JSON response.
    async () => {
      const data = await api('/x402/revenue');
      return jsonResponse(data);
    },
  • Input schema for 'get_x402_revenue' tool. An empty object {} indicates this tool takes no input parameters.
    {},

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/hifriendbot/agentwallet-mcp'

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