Skip to main content
Glama
yanboishere

Infini Payment MCP Server

by yanboishere

withdraw_funds

Transfer cryptocurrency from your Infini Payment account to an external wallet address on supported blockchain networks.

Instructions

Withdraw funds to external wallet.

Args:
    chain: Blockchain network name
    token_type: Token identifier
    amount: Amount to withdraw
    wallet_address: Destination wallet address
    note: Optional note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYes
token_typeYes
amountYes
wallet_addressYes
noteNo

Implementation Reference

  • The main handler function for the 'withdraw_funds' tool. It constructs a withdrawal request payload and sends it to the Infini API's /fund/withdraw endpoint using the InfiniClient. The function signature and docstring define the input schema for the MCP tool.
    @mcp.tool()
    def withdraw_funds(
        chain: str,
        token_type: str,
        amount: str,
        wallet_address: str,
        note: Optional[str] = None
    ) -> str:
        """
        Withdraw funds to external wallet.
        
        Args:
            chain: Blockchain network name
            token_type: Token identifier
            amount: Amount to withdraw
            wallet_address: Destination wallet address
            note: Optional note
        """
        data = {
            "chain": chain,
            "token_type": token_type,
            "amount": amount,
            "wallet_address": wallet_address
        }
        
        if note:
            data["note"] = note
            
        result = client.request("POST", "/fund/withdraw", json_data=data)
        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