Skip to main content
Glama

submit_transaction

Submit signed transactions to the Casper network using node RPC for processing on the blockchain.

Instructions

Submit a signed transaction to the Casper network via node RPC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
signed_deploy_jsonYesThe signed deploy JSON string, or a file path to a signed deploy JSON file

Implementation Reference

  • MCP tool handler registration for 'submit_transaction' which calls the SDK client's submitTransaction method.
    async ({ signed_deploy_json }) => {
      const json = await readDeployJson(signed_deploy_json);
      const result = await client.submitTransaction(json);
      return { content: [{ type: 'text' as const, text: `Transaction submitted. Hash: ${result.transactionHash}` }] };
    },
  • The core SDK implementation of submitTransaction that performs the HTTP request to submit the transaction.
    async submitTransaction(signedTransactionJson: unknown): Promise<SubmitResult> {
      const response = await this.http.post<ApiResponse<{ api_version: string; transaction_hash: { Version1: string } }>>(
        '/wasm-proxy-transaction-submission',
        signedTransactionJson
      );
      return {
        transactionHash: response.data.transaction_hash?.Version1 ?? '',
      };
    }

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/make-software/cspr-trade-mcp'

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