Skip to content

feat: add transaction history tool and integrate with stellarTools#48

Open
Shrikant1a wants to merge 1 commit intoStellar-Tools:mainfrom
Shrikant1a:feature/transaction-history
Open

feat: add transaction history tool and integrate with stellarTools#48
Shrikant1a wants to merge 1 commit intoStellar-Tools:mainfrom
Shrikant1a:feature/transaction-history

Conversation

@Shrikant1a
Copy link
Copy Markdown

@Shrikant1a Shrikant1a commented Mar 31, 2026

🚀 Overview

This PR introduces a new transaction history tool to the Stellar Agent Kit, enabling developers to fetch and analyze past transactions from the Stellar blockchain.

✨ Features Added

  • Implemented getTransactionHistory(address) function
  • Fetches transaction data using Stellar Horizon API
  • Returns structured transaction details (hash, timestamp, memo, operation count)
  • Includes error handling for network failures and invalid inputs

🔧 Integration

  • Exported the new tool from index.ts
  • Integrated the tool into the stellarTools array so it can be used by the agent system

🧠 Technical Details

  • Uses async/await for handling API calls
  • Maps raw transaction data into a clean and reusable format
  • Designed to be modular and easily extendable

🌍 Impact

This enhancement improves developer experience by providing an easy way to access transaction history and expands the SDK's functionality for building DeFi and blockchain applications on Stellar.


Summary by cubic

Adds a getTransactionHistory(address) tool and wires it into stellarTools so agents can fetch past Stellar transactions via the Horizon API. This lets apps quickly inspect an account’s recent activity.

  • New Features
    • Fetches from https://horizon.stellar.org/accounts/{address}/transactions
    • Returns: hash, created_at, operation_count, memo
    • Exported from index.ts and added to stellarTools
    • Basic error handling; throws on request failure

Written for commit 9159d5f. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@daiwikmh
Copy link
Copy Markdown
Contributor

daiwikmh commented Apr 6, 2026

remove emoji from comment, and check the ci checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants