{"id":24755197,"url":"https://github.com/ranjbar-dev/tron-wallet","last_synced_at":"2025-04-06T12:08:09.381Z","repository":{"id":64300594,"uuid":"571607832","full_name":"ranjbar-dev/tron-wallet","owner":"ranjbar-dev","description":"Tron wallet package for generating Tron wallet, transferring TRX and Tron Tokens, fetching wallet balance live and crawling blockchain blocks to extract wallet transactions","archived":false,"fork":false,"pushed_at":"2025-01-06T10:26:17.000Z","size":297,"stargazers_count":61,"open_issues_count":4,"forks_count":40,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-30T11:06:42.725Z","etag":null,"topics":["address","sign","transaction","tron","trx","wallet"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ranjbar-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-11-28T13:54:47.000Z","updated_at":"2025-03-14T17:09:59.000Z","dependencies_parsed_at":"2024-04-30T09:54:20.999Z","dependency_job_id":"8cf02c58-12d4-46af-8cb1-972e9be8096d","html_url":"https://github.com/ranjbar-dev/tron-wallet","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Ftron-wallet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Ftron-wallet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Ftron-wallet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjbar-dev%2Ftron-wallet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranjbar-dev","download_url":"https://codeload.github.com/ranjbar-dev/tron-wallet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478321,"owners_count":20945266,"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","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"}},"keywords":["address","sign","transaction","tron","trx","wallet"],"created_at":"2025-01-28T12:37:09.491Z","updated_at":"2025-04-06T12:08:09.365Z","avatar_url":"https://github.com/ranjbar-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tron wallet v2\n\n![image](https://github.com/ranjbar-dev/tron-wallet/blob/main/assets/image.png?raw=true)\n\n\nV2 is all about simplicity! I'm revamping the package to be as easy to use as possible.\n\n### private_key.go \n\nAvaiable functions related to private key \n\n```\n\nGeneratePrivateKey() (*ecdsa.PrivateKey, error)\n\nPrivateKeyToHex(privateKey *ecdsa.PrivateKey) string\n\nPrivateKeyToBytes(privateKey *ecdsa.PrivateKey) []byte\n\nPrivateKeyFromHex(privateKeyHex string) (*ecdsa.PrivateKey, error)\n\nPrivateKeyFromBytes(privateKeyBytes []byte) (*ecdsa.PrivateKey, error)\n\nPrivateKeyToPublicKey(privateKey *ecdsa.PrivateKey) (*ecdsa.PublicKey, error)\n\n```\n\n### address.go\n\nAvaiable functions related to address \n\n```\n\nPublicKeyToAddressHex(publicKey *ecdsa.PublicKey) string\n\nPublicKeyToAddressBase58(publicKey *ecdsa.PublicKey) string\n\n```\n\n\n### transaction.go\n\nAvaiable functions related to transaction \n\nyou can create any transaction from `github.com/fbsobreira` and sign and broadcast it using `SignTransaction` and `BroadcastTransaction` \n\n```\n\nCreateTransferTransaction(client *client.GrpcClient, from, to string, amount *big.Int) (*api.TransactionExtention, error)\n\nCreateTRC20TransferTransaction(client *client.GrpcClient, from, to, contract string, amount *big.Int, feeLimit int64) (*api.TransactionExtention, error)\n\nCreateFreezTransaction(client *client.GrpcClient, address string, resource core.ResourceCode, amount *big.Int) (*api.TransactionExtention, error)\n\nCreateUnfreezeTransaction(client *client.GrpcClient, address string, resource core.ResourceCode, amount *big.Int) (*api.TransactionExtention, error)\n\nSignTransaction(transaction *api.TransactionExtention, privateKey *ecdsa.PrivateKey) (*api.TransactionExtention, error)\n\nBroadcastTransaction(client *client.GrpcClient, transaction *api.TransactionExtention) (*api.Return, error)\n\n```\n\n### TODOS \n\n- estimating trc20 and trc10 fee \n\n- contract api calls, deploy, get name, decimals and ... \n\n- block and transaction crawl calls \n\n- delegate resource transaction \n\n- writing test \n\n### TRX Faucet\n\nFollow TronTestnet Twitter account @TronTest2 . Write your address in your tweet and @TronTest2 . They will transfer 10,000 test TRX (usually within five minutes). Each address can only be obtained once a day. If you need TRX for the nile testnet, please add \"NILE\" in your tweet.\n\n### TRC20 Faucet\n\nGo to https://developers.tron.network/ and connect to the discord community. You can than ask for usdt in #faucet channel. Just type !shasta_usdt YOUR_WALLET_ADDRESS and send. TronFAQ bot will send you 5000 USDT (SASHTA) soon.\n\n### Important\n\nI simplified this repository https://github.com/fbsobreira repository to create this package You can check go tron sdk for better examples and functionalities.\n\n### Donation\n\nAddress `TUE66D1BT79FQcJE7fwf5vdfu3BYM4ph9Y`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjbar-dev%2Ftron-wallet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franjbar-dev%2Ftron-wallet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjbar-dev%2Ftron-wallet/lists"}