get_transaction
Retrieve detailed blockchain transaction information by providing a transaction hash to access data like sender, receiver, amount, and status.
Instructions
Get transaction details by hash
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | The transaction hash |
Implementation Reference
- index.ts:874-887 (registration)Registration of the 'get_transaction' tool, including its name, description, and input schema definition.{ name: "get_transaction", description: "Get transaction details by hash", inputSchema: { type: "object", properties: { hash: { type: "string", description: "The transaction hash", }, }, required: ["hash"], }, },
- index.ts:89-89 (schema)TypeScript type definition for the input parameters of the get_transaction tool.type GetTransactionParams = { hash: string };
- index.ts:313-319 (helper)Validator function to check if arguments match GetTransactionParams for the get_transaction tool.const isValidGetTransactionParams = ( args: any ): args is GetTransactionParams => { return ( typeof args === "object" && args !== null && typeof args.hash === "string" ); };