Skip to main content
Glama
yanboishere

Infini Payment MCP Server

by yanboishere

list_payment_orders

Retrieve and filter payment orders for USDC/USDT transactions by currency, status, or pagination to manage cryptocurrency payments.

Instructions

List payment orders with optional filters.

Args:
    currency: Filter by currency (USDC/USDT)
    status: Filter by order status
    page: Page number (1 to n)
    page_size: Page size (default 10)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
currencyNo
statusNo
pageNo
page_sizeNo

Implementation Reference

  • The handler function for the 'list_payment_orders' tool. It is registered via the @mcp.tool() decorator and implements the logic to fetch payment orders from the Infini API using the InfiniClient, applying optional filters for currency, status, pagination.
    @mcp.tool()
    def list_payment_orders(
        currency: Optional[str] = None,
        status: Optional[str] = None,
        page: int = 1,
        page_size: int = 10
    ) -> str:
        """
        List payment orders with optional filters.
        
        Args:
            currency: Filter by currency (USDC/USDT)
            status: Filter by order status
            page: Page number (1 to n)
            page_size: Page size (default 10)
        """
        params = {
            "page": page,
            "page_size": page_size
        }
        
        if currency:
            params["currency"] = currency
        if status:
            params["status"] = status
            
        result = client.request("GET", "/order/list", params=params)
        return str(result)

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/yanboishere/infini-mcp'

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