Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

send_transaction

Send signed and serialized transactions to the Solana blockchain using the MCP server. This tool processes pre-formatted transaction data and returns the send result.

Instructions

Send a transaction that has already been signed and serialized into the wire format.

Args: txn (bytes): Signed transaction as bytes

Returns: str: Transaction send result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txnYes

Implementation Reference

  • src/server.py:638-638 (registration)
    Decorator that registers the send_transaction function as an MCP tool.
    @mcp.tool()
  • The handler function that executes the tool logic: sends the provided signed transaction bytes to the Solana RPC endpoint using send_raw_transaction and returns the result.
    async def send_transaction(txn: bytes) -> str: """Send a transaction that has already been signed and serialized into the wire format. Args: txn (bytes): Signed transaction as bytes Returns: str: Transaction send result """ async with AsyncClient(rpc_url) as client: result = await client.send_raw_transaction(txn) return f"Transaction sent: {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/tywenk/mcp-sol'

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