Skip to main content
Glama
management.ts1 kB
import { Agent } from '../../agent'; export async function getTransactionInfo(agent: Agent, hash: string): Promise<any> { try { const response = await agent.client.request({ command: 'tx', transaction: hash }); return response.result; } catch (error) { throw new Error(`Failed to get transaction info: ${error instanceof Error ? error.message : 'Unknown error'}`); } } export async function getAccountTransactions(agent: Agent, address: string, limit: number = 10) { try { const response = await agent.client.request({ command: 'account_tx', account: address, ledger_index_min: -1, ledger_index_max: -1, limit: limit, binary: false }); return response.result.transactions || []; } catch (error) { throw new Error(`Failed to get account transactions: ${error instanceof Error ? error.message : 'Unknown error'}`); } }

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/tamago-labs/xrpl-mcp'

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