# PowerSun

Optimize TRON transaction costs by purchasing and managing Energy or Bandwidth at market rates. Monetize idle resources through automated pool management, delegation, and reward claiming. Simplify bl…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y smithery mcp add powersun/tron-energy-mcp

# Browse available tools
npx -y smithery tool list powersun/tron-energy-mcp

# Get full schema for a tool
npx -y smithery tool get powersun/tron-energy-mcp get_prices

# Call a tool
npx -y smithery tool call powersun/tron-energy-mcp get_prices '{}'
```

## Direct MCP Connection

Endpoint: `https://tron-energy-mcp--powersun.run.tools`

## Tools (27)

- `get_prices` — Get current TRON Energy and Bandwidth minimum prices for all duration tiers. Returns price per unit in SUN for each ava…
- `estimate_cost` — Calculate the cost of purchasing TRON Energy or Bandwidth. Provide transaction count and type to get the energy needed …
- `get_available_resources` — Get total available Energy and Bandwidth across all active pools. Shows how much resource can be purchased right now.
- `get_market_overview` — Comprehensive market overview: prices, availability, allowed durations, order constraints, and transaction types. Usefu…
- `get_balance` — Get your current TRX balance and deposit information. Requires API key authentication.
- `buy_energy` — Purchase TRON Energy for a target address. Creates a MARKET order that will be filled by available pools. Deducts cost …
- `broadcast_transaction` — Broadcast a pre-signed TRON transaction with auto energy delegation. Send your signed transaction data and PowerSun wil…
- `get_orders` — Get your order history with optional status filter. Returns recent orders sorted by creation time.
- `get_order_status` — Get detailed status of a specific order including delegation progress.
- `get_deposit_info` — Get the deposit address to top up your account balance with TRX.
- `get_swap_quote` — Get a price quote and unsigned transaction for swapping tokens on SunSwap DEX. Returns an unsigned TX for client-side s…
- `execute_swap` — Execute a pre-signed swap transaction with automatic energy delegation. Get the unsigned TX from get_swap_quote, sign i…
- `get_pool_stats` — Get comprehensive statistics for your energy/bandwidth pools: delegations, revenue, utilization, APY. Requires API key.
- `get_earnings` — Get earnings breakdown by pool: total earned, pending payout, paid out. Optionally filter by date range.
- `get_auto_selling_config` — Get current auto-selling configuration for your pools. Shows which resources are being sold, duration constraints, and …
- `configure_auto_selling` — Update auto-selling configuration for a pool. Toggle energy/bandwidth selling, set reserves, duration constraints. Pass…
- `get_pool_delegations` — Get active delegations from your pools. Shows who received energy/bandwidth and when delegations expire.
- `withdraw_earnings` — Withdraw TRX from your account balance to your wallet. Minimum withdrawal: 100 TRX. Withdrawal is processed on-chain an…
- `register_pool` — Register a TRON address as an energy/bandwidth selling pool on PowerSun. This creates a pool and auto-selling configura…
- `get_onchain_status` — Get live blockchain state for your pool: TRX balance, frozen resources (Energy/Bandwidth), voting status, claimable rew…
- `check_pool_permissions` — Verify that the platform has the required active permissions on your pool address. Required: DelegateResource (to sell …
- `trigger_vote` — Vote for the best Super Representative (SR) with the highest APY to earn voting rewards. The platform automatically sel…
- `get_auto_action_history` — View execution history of automatic actions (stake, vote, claim) for your pool. Shows status (success/failed/skipped), …
- `register` — Start agent registration by providing your TRON address. Returns a challenge string that you must sign with your TRON p…
- `verify_registration` — Complete agent registration by verifying your signed challenge. Returns an API key and upgrades the current session to …
- `build_permission_transaction` — Build an AccountPermissionUpdate transaction that grants the PowerSun platform permission to delegate/undelegate resour…
- `broadcast_signed_permission_tx` — Broadcast a signed AccountPermissionUpdate transaction to the TRON blockchain. After broadcasting, verifies that the pl…

```bash
# Get full input/output schema for a tool
npx -y smithery tool get powersun/tron-energy-mcp <tool-name>
```
