Skip to main content
Glama

zetrix_submit_transaction

Submit signed transactions to the Zetrix blockchain for execution. Send serialized transaction blobs with signatures to process blockchain operations.

Instructions

Submit signed transaction to blockchain for execution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transactionBlobYesSerialized transaction blob
signaturesYesArray of signature objects with sign_data and public_key

Implementation Reference

  • Core handler function that submits the signed transaction blob to the Zetrix RPC endpoint /submitTransaction.
    async submitTransaction( transactionBlob: string, signatures: Array<{ sign_data: string; public_key: string }> ): Promise<ZetrixSubmitResult> { try { const response = await this.client.post("/submitTransaction", { transaction_blob: transactionBlob, signatures, }); if (response.data.error_code !== 0) { throw new Error( response.data.error_desc || `API Error: ${response.data.error_code}` ); } return response.data.result; } catch (error) { if (axios.isAxiosError(error)) { throw new Error(`Failed to submit transaction: ${error.message}`); } throw error; } }
  • MCP server dispatch handler for the tool call, validates args and calls ZetrixClient.submitTransaction.
    case "zetrix_submit_transaction": { if (!args) { throw new Error("Missing arguments"); } const result = await zetrixClient.submitTransaction( args.transactionBlob as string, args.signatures as Array<{ sign_data: string; public_key: string }> ); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • src/index.ts:282-299 (registration)
    Tool registration in the MCP tools list, including name, description, and input schema definition.
    { name: "zetrix_submit_transaction", description: "Submit signed transaction to blockchain for execution", inputSchema: { type: "object", properties: { transactionBlob: { type: "string", description: "Serialized transaction blob", }, signatures: { type: "array", description: "Array of signature objects with sign_data and public_key", }, }, required: ["transactionBlob", "signatures"], }, },

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/Zetrix-Chain/zetrix-mcp-server'

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