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.

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

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.

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 (
  "github.com/fbsobreira/gotron-sdk/pkg/client"
)
func main() {
  conn := client.NewGrpcClient("grpc.trongrid.io:50051")
  conn.Start()
  acc, _ := conn.GetAccount(addr)
}

3. Or install the CLI

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

Built and maintained by CryptoChain community developer

Vote for Super Representative