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
| Name | Required | Description | Default |
|---|---|---|---|
| signed_deploy_json | Yes | The signed deploy JSON string, or a file path to a signed deploy JSON file |
Implementation Reference
- packages/mcp/src/tools/trading.ts:90-94 (handler)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}` }] }; }, - packages/sdk/src/api/submission.ts:33-41 (handler)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 ?? '', }; }