Open Source · LGPL-3.0

GoTRON SDK — The Go toolkit for TRON

Build wallets, exchanges, trading bots, staking services, and blockchain automation with the most complete Go library for TRON.

terminal
$ curl -fsSL gotron.sh/install | sh
$ tronctl account balance TRX...
Balance: 12,450.500000 TRX
// Or use the Go SDK directly
conn := client.NewGrpcClient("grpc.trongrid.io:50051")
conn.Start()
acc, _ := conn.GetAccount(addr)
fmt.Println(acc.Balance)

Built For

Whatever you're building on TRON, GoTRON SDK has you covered.

🏦

Exchanges

Deposit detection, withdrawals, and hot/cold wallet management with enterprise-grade reliability.

👛

Wallets

HD wallet derivation, encrypted keystores, Ledger hardware signing, and multi-signature support.

🤖

Trading Bots

High-performance gRPC transport with Go concurrency for low-latency automated trading.

🥩

Staking Services

Energy and bandwidth resource management, voting, and reward claiming automation.

🔧

Infrastructure

Node monitoring, block scanning, transaction broadcasting, and backend services.

🧠

AI Agents

Connect LLMs to TRON via MCP. Query balances, build transactions, and interact with smart contracts from AI workflows.

Why GoTRON?

See how GoTRON compares to other TRON SDKs.

Feature GoTRON SDK TronWeb (JS) tron-api-python
Language Go TypeScript Python
Transport gRPC HTTP HTTP
CLI Tool tronctl
Type Safety Compile-time TypeScript mypy strict
Concurrency Goroutines async/await asyncio
Hardware Signing Ledger
HD Wallets BIP44 BIP44
Multi-sig
Deployment Single binary Node.js pip
TRC20/TRC10
AI/MCP Support

Features

Everything you need to build on TRON with Go.

Complete CLI — tronctl

Full-featured command-line tool for TRON. Check balances, send transactions, manage resources, and more — no code required.

Clean Go SDK

Idiomatic Go API with strong types, comprehensive error handling, and excellent documentation.

Secure Key Management

Ledger hardware wallet support, BIP44 HD wallet derivation, encrypted keystore files, and multi-signature transactions.

High Performance

Native gRPC transport for low-latency communication. Leverage Go's goroutines for concurrent blockchain operations.

TRC20 & TRC10 Support

Full token support including transfers, approvals, balance queries, and contract interactions for both token standards.

Resource Management

Stake TRX for energy and bandwidth, vote for super representatives, and manage network resources programmatically.

NEW

Connect AI Agents to TRON

GoTRON MCP Server lets AI agents query balances, tokens, blocks, and build transactions on TRON — directly from Claude, Cursor, or any MCP-compatible client.

Install locally

terminal
$ curl -fsSL gotron.sh/install-mcp | sh

Or zero install — just connect

endpoint
https://mcp.gotron.sh/mcp

Add to your IDE

Claude Desktop / Claude Code
$ claude mcp add gotron --transport http https://mcp.gotron.sh/mcp
Cursor / Cline / VS Code
{
  "mcpServers": {
    "gotron": {
      "url": "https://mcp.gotron.sh/mcp"
    }
  }
}
Windsurf
{
  "mcpServers": {
    "gotron": {
      "serverUrl": "https://mcp.gotron.sh/mcp"
    }
  }
}

Quick Start

Get up and running in minutes.

1. Install the SDK

terminal
$ go get github.com/fbsobreira/gotron-sdk

2. Use GoTRON in your project

main.go
package main
import (
  "fmt"
  "log"
  "github.com/fbsobreira/gotron-sdk/pkg/client"
)
func main() {
  conn := client.NewGrpcClient("grpc.trongrid.io:50051")
  if err := conn.Start(); err != nil {
    log.Fatal(err)
  }
  defer conn.Stop()
  acc, err := conn.GetAccount("TRX_ADDRESS")
  if err != nil {
    log.Fatal(err)
  }
  fmt.Printf("Balance: %d SUN\n", acc.Balance)
}

3. Or install the CLI

terminal
$ curl -fsSL gotron.sh/install | sh
$ tronctl account balance <address>

Frequently Asked Questions

Everything you need to know about GoTRON SDK.

What is GoTRON SDK?
GoTRON SDK is the most complete open-source Go library for TRON blockchain development. It provides a full-featured gRPC client, CLI tool (tronctl), HD wallet support, Ledger hardware signing, TRC20/TRC10 token operations, staking, and an MCP server for AI agent integration.
How do I install GoTRON SDK?
Install with Go: go get github.com/fbsobreira/gotron-sdk. For the CLI tool: curl -fsSL gotron.sh/install | sh or go install github.com/fbsobreira/gotron-sdk/cmd/tronctl@latest.
How do I connect AI agents to TRON?
Use the GoTRON MCP Server. Connect via the hosted endpoint: claude mcp add gotron --transport http https://mcp.gotron.sh/mcp. Or install locally: curl -fsSL gotron.sh/install-mcp | sh. This lets AI agents like Claude query balances, tokens, blocks, and build transactions on TRON.
What programming languages can I use to develop on TRON?
TRON supports Go (GoTRON SDK), JavaScript/TypeScript (TronWeb), and Python (tron-api-python). GoTRON is the only SDK offering gRPC transport, a CLI tool, Ledger hardware wallet support, and AI/MCP integration.
Does GoTRON support TRC20 tokens and USDT on TRON?
Yes. GoTRON SDK provides full TRC20 support including balance queries, transfers, token metadata (name, symbol, decimals), and batch operations using Go concurrency. It also supports TRC10 tokens.
CryptoChain logo

Built and maintained by CryptoChain community developer