Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new transaction status tool to the Base MCP server, allowing Claude to check the status and details of a transaction on the Base network using its hash. The tool accepts a transaction hash and an optional chain ID, and returns comprehensive transaction details including transaction status, block information, addresses, values, and a link to BaseScan.
The implementation follows existing project patterns and properly handles BigInt serialization for blockchain data, which is a critical aspect of working with on-chain data.
Type of change
How Has This Been Tested?
The implementation includes a dedicated test file (
src/tools/transaction-status/test.ts
) that can be run using:node --loader ts-node/esm src/tools/transaction-status/test.ts
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Testing was performed with real transaction hashes on the Base network to verify:
Example test transaction hash used:
0xcf0bb80bfc5859cb33353c488045022811e2d412274e1963c75d83a4b038c22d
Checklist:
Screenshots (if appropriate):