Skip to main content
Glama

Model Context Protocol Server for Solana Client

by tywenk

get_fee_for_message

Calculate the transaction fee for a message transfer on Solana by providing sender and recipient public keys along with the lamports amount. Returns fee details.

Instructions

Returns the fee for a message.

Args: from_pubkey (str): Sender's public key to_pubkey (str): Recipient's public key lamports (int): Amount of lamports to transfer

Returns: str: Fee information

Input Schema

NameRequiredDescriptionDefault
from_pubkeyYes
lamportsYes
to_pubkeyYes

Input Schema (JSON Schema)

{ "properties": { "from_pubkey": { "title": "From Pubkey", "type": "string" }, "lamports": { "title": "Lamports", "type": "integer" }, "to_pubkey": { "title": "To Pubkey", "type": "string" } }, "required": [ "from_pubkey", "to_pubkey", "lamports" ], "title": "get_fee_for_messageArguments", "type": "object" }

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