{"id":12486433,"name":"github.com/sxwebdev/gotron","ecosystem":"go","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","homepage":"https://github.com/sxwebdev/gotron","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/sxwebdev/gotron","keywords_array":[],"namespace":"github.com/sxwebdev","versions_count":1,"first_release_published_at":"2026-04-29T00:05:49.000Z","latest_release_published_at":"2026-04-29T00:05:49.000Z","latest_release_number":"v0.0.0-20260429000549-c004944d4975","last_synced_at":"2026-05-03T14:36:36.286Z","created_at":"2025-11-15T14:05:35.901Z","updated_at":"2026-05-03T15:22:24.269Z","registry_url":"https://pkg.go.dev/github.com/sxwebdev/gotron","install_command":"go get github.com/sxwebdev/gotron","documentation_url":"https://pkg.go.dev/github.com/sxwebdev/gotron#section-documentation","metadata":{},"repo_metadata":{"id":322460984,"uuid":"1089586731","full_name":"sxwebdev/gotron","owner":"sxwebdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-04T15:50:58.000Z","size":45,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-04T16:21:30.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sxwebdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-04T14:43:35.000Z","updated_at":"2025-11-04T14:44:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sxwebdev/gotron","commit_stats":null,"previous_names":["sxwebdev/gotron"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sxwebdev/gotron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fgotron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fgotron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fgotron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fgotron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sxwebdev","download_url":"https://codeload.github.com/sxwebdev/gotron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxwebdev%2Fgotron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284566169,"owners_count":27027039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-15T02:00:06.050Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"repo_metadata_updated_at":"2026-05-03T15:22:24.242Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":5.43820333068483,"dependent_packages_count":5.095923682939055,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":5.267063506811942},"purl":"pkg:golang/github.com/sxwebdev/gotron","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/sxwebdev/gotron","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/sxwebdev/gotron","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/sxwebdev/gotron/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fgotron/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fgotron/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fgotron/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fgotron/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fgotron/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsxwebdev%2Fgotron/codemeta","maintainers":[]}