{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/sxwebdev/gotron","name":"github.com/sxwebdev/gotron","description":"Package gotron provides a comprehensive SDK for interacting with the Tron blockchain.\n\nThis package offers a complete implementation of Tron's API with a clean,\nidiomatic Go interface. It supports both gRPC and HTTP REST API transports\nwith round-robin load balancing across multiple nodes.\n\nCreate a client and query an account balance:\n\nThe SDK uses a unified configuration with a list of nodes.\nRound-robin load balancing is always used across all configured nodes.\n\nSingle gRPC node:\n\nSingle HTTP node:\n\nMultiple nodes with mixed protocols:\n\nEach request uses the next node in round-robin fashion.\nErrors are returned as-is without retries.\n\nTronGrid requires an API key via the TRON-PRO-API-KEY header.\nUse the Headers field in NodeConfig - it works for both HTTP and gRPC transports:\n\nGenerate addresses from mnemonic phrases using BIP39/BIP44:\n\nCreate and broadcast a TRX transfer:\n\nWork with TRC20 tokens:\n\nDelegate and reclaim resources:\n\nThe SDK is organized into several packages:\n\nThe client package uses a Transport interface pattern with round-robin\nload balancing across all configured nodes.\n\nThe package provides typed errors for common scenarios:\n\nCommon errors:\n\nThe SDK supports optional metrics for monitoring RPC performance.\nUse the built-in Prometheus implementation or provide a custom MetricsCollector.\n\nBuilt-in Prometheus metrics:\n\nAvailable built-in metrics:\n\nCustom MetricsCollector:\n\nGenerate multiple addresses from a single mnemonic:\n\nFor detailed API documentation, visit https://pkg.go.dev/github.com/sxwebdev/gotron","version":"v0.0.0-20260429000549-c004944d4975","softwareVersion":"v0.0.0-20260429000549-c004944d4975","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/sxwebdev/gotron","issueTracker":"https://github.com/sxwebdev/gotron/issues","url":"https://github.com/sxwebdev/gotron","dateCreated":"2026-04-29","dateModified":"2026-04-29","datePublished":"2026-04-29","copyrightYear":2026,"downloadUrl":"https://proxy.golang.org/github.com/sxwebdev/gotron/@v/v0.0.0-20260429000549-c004944d4975.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/sxwebdev/gotron#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/sxwebdev/gotron"]}