logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

edu-ledger-toolkit-ai-agent

A comprehensive utility suite for interfacing with the EDUCHAIN ecosystem, primarily focused on SailFish Decentralized Exchange (DEX) operations. This tool facilitates real-time retrieval of ledger data (tokens, liquidity pools), execution of asset exchanges, and management of associated digital wallets. It is engineered to support advanced trading analyses, including historical trend examination and identification of cross-venue arbitrage discrepancies.

Author

edu-ledger-toolkit-ai-agent logo

SailFish-Finance

MIT License

Quick Info

GitHub GitHub Stars 5
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

sailfisheduchaincryptocrypto sailfishsailfish financesailfish dex

MseeP.ai Security Assessment Badge

EDUCHAIN Agent Kit MCP server [![Verified on MseeP](https://mseep.ai/badge.svg)](https://mseep.ai/app/c3e20120-62ee-4c7e-b05f-35004b0864cf) # EDUCHAIN Agent Kit

SailfishAgent

This Model Context Protocol (MCP) infrastructure furnishes Claude with specialized functions for interacting with the EDUCHAIN environment. It empowers the agent to query asset pricing and pool composition, execute token exchanges via the SailFish Automated Market Maker (AMM), and handle account-related operations.

Core Capabilities

Asset & Liquidity Pool Metadata Retrieval

  • Ascertain asset valuations and attributes.
  • Retrieve metrics and status for liquidity provisions (pools).
  • Access longitudinal time-series data for assets and pools.
  • Identify leading assets and pools ranked by Total Value Locked (TVL).

Digital Asset Custody Management

  • Query balances for native EDU and various ERC-20 tokens.
  • Generate holistic summaries of wallet contents, encompassing fungible and non-fungible assets.
  • Initiate transfers of native EDU and standard ERC-20 tokens.

Exchange Execution (Swaps)

  • Obtain prospective trade quotations, detailing execution cost and pathing logic.
  • Facilitate direct token-to-token asset exchanges.
  • Execute EDU-denominated trades (involves implicit WEDU handling).
  • Execute trades resulting in EDU accumulation (involves implicit WEDU handling).

Operational Caveat: SailFish DEX, structurally similar to Uniswap v3 derivatives, mandates the use of Wrapped EDU (WEDU) for underlying swap mechanics. The interface abstracts this complexity: EDU-based swap calls automatically manage the necessary wrapping/unwrapping. For granular control over the token state, developers may utilize the explicit wrap_edu and unwrap_wedu functions.

Cross-Venue Price Discrepancy Exploitation (Arbitrage)

  • Fetch current EDU market valuations from designated centralized exchanges (CEXs).
  • Analyze data streams to flag exploitable price differences between CEXs and SailFish DEX.
  • Allow configuration of the external data source API.
  • Permit fine-tuning of the sensitivity threshold for arbitrage detection.

Available Functions

Asset & Pool Data Accessors

  • get_token_price: Fetches the prevailing exchange rate for a specified token on SailFish DEX.
  • get_token_info: Retrieves comprehensive metadata for a token within the SailFish DEX structure.
  • get_pool_info: Returns detailed statistics for a particular liquidity concentration pool.
  • get_top_tokens: Lists premier tokens ranked by their locked capital.
  • get_top_pools: Lists premier liquidity pools ranked by their locked capital.
  • get_total_tvl: Reports the aggregate value secured across the entire SailFish DEX.
  • get_24h_volume: Retrieves the cumulative trading turnover over the last 24 hours.
  • get_token_historical_data: Fetches past pricing/liquidity data for an asset.
  • get_pool_historical_data: Fetches historical performance data for a specific pool.

Wallet Management Interfaces

  • get_edu_balance: Reads the current balance of the native EDU asset for an address.
  • get_token_balance: Queries the holding and computed USD valuation for a specified token.
  • get_multiple_token_balances: Efficiently retrieves balances for several tokens simultaneously.
  • get_nft_balance: Determines the count of specific Non-Fungible Tokens held by an address.
  • get_wallet_overview: Provides a consolidated report of all holdings (EDU, ERC-20s, NFTs).
  • get_wallet_address_from_private_key: Derives the public address from a supplied private cryptographic key.
  • send_edu: Authorizes the transfer of native EDU to another destination address.
  • send_erc20_token: Authorizes the transfer of an ERC-20 standard token.

Exchange Functionalities

  • get_swap_quote: Calculates potential outcomes and slippage for a proposed exchange.
  • swap_tokens: Executes a direct exchange between two non-native token assets.
  • swap_edu_for_tokens: Executes a trade converting native EDU into a specified token.
  • swap_tokens_for_edu: Executes a trade converting a token into native EDU.
  • wrap_edu: Explicitly converts EDU into its wrapped counterpart (WEDU).
  • unwrap_wedu: Explicitly converts WEDU back into native EDU.

Arbitrage Analysis Tools

  • get_external_market_data: Gathers current EDU pricing feeds from external CEX sources.
  • check_arbitrage_opportunities: Scans for profitable trade discrepancies between internal and external venues.
  • update_external_market_config: Modifies parameters governing external data fetching.
  • get_external_market_config: Displays the active configuration settings for external data acquisition.

System Configuration

  • set_rpc_url: Establishes or modifies the endpoint used for direct blockchain communication.
  • get_rpc_url: Reports the currently utilized blockchain gateway address.

Access Endpoints (Resources)

  • sailfish://overview: Accesses summary statistics for the entire SailFish DEX platform (TVL, volume, etc.).
  • sailfish://token/{tokenId}: Direct lookup path for specific asset data.
  • sailfish://pool/{poolId}: Direct lookup path for specific liquidity pool data.

Deployment Guide

  1. Verify that a functional Node.js runtime environment is present.
  2. Clone the source code repository.
  3. Install necessary project dependencies:

npm install

  1. Compile the source code for execution:

npm run build

  1. Integrate this MCP service into your Claude Desktop configuration file:

{ "mcpServers": { "sailfish": { "command": "node", "args": ["/path/to/SubgraphMCP/build/index.js"], "env": { "RPC_URL": "https://your-edu-rpc-url.com" } } } }

Operational Snippets

Querying Asset Valuation

javascript use_mcp_tool("sailfish", "get_token_price", { "tokenId": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342" });

Requesting a Trade Estimate

javascript use_mcp_tool("sailfish", "get_swap_quote", { "tokenIn": "0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12", "tokenOut": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342", "amountIn": "10" });

Executing a Token Exchange

javascript use_mcp_tool("sailfish", "swap_tokens", { "privateKey": "YOUR_PRIVATE_KEY", "tokenIn": "0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12", "tokenOut": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342", "amountIn": "10", "slippagePercentage": 0.5 });

Checking for Arbitrage Possibilities

javascript use_mcp_tool("sailfish", "check_arbitrage_opportunities", { "threshold": 1.5 });

Modifying External Market Data Configuration

javascript use_mcp_tool("sailfish", "update_external_market_config", { "apiUrl": "https://api.example.com/crypto/prices", "apiKey": "YOUR_API_KEY", "symbols": { "EDU": "EDU", "USD": "USDT" } });

Converting EDU to WEDU

javascript use_mcp_tool("sailfish", "wrap_edu", { "privateKey": "YOUR_PRIVATE_KEY", "amount": "10" });

Reverting WEDU to EDU

javascript use_mcp_tool("sailfish", "unwrap_wedu", { "privateKey": "YOUR_PRIVATE_KEY", "amount": "10" });

Validation

Execution of the included testing module verifies routing and quote generation integrity without committing live transactional data:

node build/test.js

Licensing

This software is distributed under the terms of the MIT License (refer to the [LICENSE] file for specifics).

WIKIPEDIA: Tron (stylized as TRON) is a decentralized, proof-of-stake blockchain with smart contract functionality. The cryptocurrency native to the blockchain is known as Tronix (TRX). It was founded in March 2014 by Justin Sun and, since 2017, has been overseen and supervised by the TRON Foundation, a non-profit organization in Singapore, established in the same year. It is open-source software. Tron was originally an Ethereum-based ERC-20 token, which switched protocol to its own blockchain in 2018. On some cryptocurrency wallets, users can't withdraw their funds until they have enough amount for the network fee. Tron has been criticised for enabling organized crime, with The Wall Street Journal stating in 2025 that it is a "popular channel for crypto’s criminal fraternity to move funds" and responsible for "more than half of all illegal crypto activity" in 2024, with the United Nations Office on Drugs and Crime calling it a “preferred choice for crypto money launderers” in Asia.

== History == Tron was founded by Justin Sun in 2017. The TRON Foundation was established in July 2017 in Singapore. The TRON Foundation raised $70 million in 2017 through an initial coin offering (ICO) shortly before China outlawed the digital tokens. The testnet, Blockchain Explorer, and Web Wallet were all launched by March 2018. TRON Mainnet launched shortly afterward in May 2018, marking the Odyssey 2.0 release as a technical milestone for TRON. In June 2018, TRON switched its protocol from an ERC-20 token on top of Ethereum to an independent peer-to-peer network. On 25 July 2018, the TRON Foundation announced it had finished the acquisition of BitTorrent, a peer-to-peer file sharing service. Upon this acquisition, in August 2018, BitTorrent Founder Bram Cohen also disclosed that he was leaving the company to found a separate cryptocurrency, Chia. By January 2019, TRON had a total market cap of about $1.6 bn. Despite this market performance, some authors viewed TRON as a typical case of the complex and disordered nature of cryptocurrencies. In February 2019, after being acquired by TRON Foundation, BitTorrent started its own token sale based on the TRON network. In late 2021, Justin Sun resigned as CEO of the TRON Foundation, which was subsequently reorganized as a DAO. In March 2023, Sun and Tron were sued by the U.S. Securities and Exchange Commission (SEC) for selling unregistered securities related to the sale and promotion of Tronix (TRX) and BitTorrent (BBT) tokens; the SEC alleged that Sun and Tron had engaged in wash trading in the secondary market for TRX in order to buoy its price. $31 million of proceeds were generated through thousands of Tronix trades between two accounts Sun controlled. Eight celebrities, including Akon, Ne-Yo, Austin Mahone, Soulja Boy, Lindsay Lohan, Jake Paul and Lil Yachty, were charged with promoting these cryptocurrencies without disclosing that they were sponsored, with all those other than Soulja Boy, and Mahone settling with t

See Also

`