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
| Name | Required | Description | Default |
|---|---|---|---|
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); }, ); - src/index.ts:1368-1371 (handler)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); }, - src/index.ts:1367-1367 (schema)Input schema for 'get_x402_revenue' tool. An empty object {} indicates this tool takes no input parameters.
{},