Skip to main content
Glama
tdnupe3

Coin Railz MCP Server

by tdnupe3

build_transaction

Create unsigned blockchain transactions with gas estimates for sending tokens or native currency between addresses on supported networks.

Instructions

Build a transaction object ready for signing.

Args: from_address: Sender wallet address to_address: Recipient wallet address value: Amount to send (in token units or wei) chain: Blockchain network token_address: Optional ERC-20 token address (native token if not provided)

Returns: Unsigned transaction object with gas estimates.

Price: $0.15

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_addressYes
to_addressYes
valueYes
chainNoethereum
token_addressNo

Implementation Reference

  • The handler function 'build_transaction' that builds a transaction using the 'transaction-builder' service.
    async def build_transaction(
        from_address: str,
        to_address: str,
        value: str,
        chain: str = "ethereum",
        token_address: str = None
    ) -> str:
        """
        Build a transaction object ready for signing.
        
        Args:
            from_address: Sender wallet address
            to_address: Recipient wallet address
            value: Amount to send (in token units or wei)
            chain: Blockchain network
            token_address: Optional ERC-20 token address (native token if not provided)
        
        Returns:
            Unsigned transaction object with gas estimates.
        
        Price: $0.15
        """
        payload = {
            "from": from_address,
            "to": to_address,
            "value": value,
            "chain": chain
        }
        if token_address:
            payload["tokenAddress"] = token_address
        result = await call_coinrailz_service("transaction-builder", payload)
        return json.dumps(result, indent=2)

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/tdnupe3/mcp-server-coinrailz'

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