{"id":29956098,"url":"https://github.com/averageencoreenjoer/tron-wallet-info","last_synced_at":"2026-05-03T20:40:02.237Z","repository":{"id":306625296,"uuid":"1024301541","full_name":"averageencoreenjoer/tron-wallet-info","owner":"averageencoreenjoer","description":"Microservice for obtaining information about wallets in the Tron network. Allows you to get the TRX balance, bandwidth and energy by wallet address. Saves the history of queries in the database with pagination support. Implemented on FastAPI using SQLAlchemy ORM and TronPy.","archived":false,"fork":false,"pushed_at":"2025-07-26T16:04:29.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T18:15:39.492Z","etag":null,"topics":["api","blockchain","crypto","docker","fastapi","microservice","pytest","python3","sqlalchemy","tron","tronpy"],"latest_commit_sha":null,"homepage":"","language":"Python","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/averageencoreenjoer.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,"zenodo":null}},"created_at":"2025-07-22T13:40:34.000Z","updated_at":"2025-07-26T16:07:43.000Z","dependencies_parsed_at":"2025-07-26T21:22:38.333Z","dependency_job_id":"208e72ba-26ee-42f9-b4b5-4a61f1811da3","html_url":"https://github.com/averageencoreenjoer/tron-wallet-info","commit_stats":null,"previous_names":["averageencoreenjoer/tron-wallet-info"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/averageencoreenjoer/tron-wallet-info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averageencoreenjoer%2Ftron-wallet-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averageencoreenjoer%2Ftron-wallet-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averageencoreenjoer%2Ftron-wallet-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averageencoreenjoer%2Ftron-wallet-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/averageencoreenjoer","download_url":"https://codeload.github.com/averageencoreenjoer/tron-wallet-info/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averageencoreenjoer%2Ftron-wallet-info/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32584646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"}},"keywords":["api","blockchain","crypto","docker","fastapi","microservice","pytest","python3","sqlalchemy","tron","tronpy"],"created_at":"2025-08-03T18:10:16.196Z","updated_at":"2026-05-03T20:40:02.232Z","avatar_url":"https://github.com/averageencoreenjoer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tron Wallet Info Service\n\nMicroservice for obtaining information about wallets in the Tron network with saving the history of requests.\n\n## Features\n- Getting information about the wallet (TRX balance, bandwidth, energy)\n- Saving the history of requests in the DB\n- Viewing history with pagination\n- Full API documentation (Swagger UI)\n- Unit and integration tests\n- Docker support\n\n## Technologies\n- Python 3.11\n- FastAPI\n- SQLAlchemy 2.0\n- TronPy\n- Pytest\n- Docker\n\n## Quick Start\n\n### Without Docker\n```bash\ngit clone https://github.com/averageencoreenjoer/tron-wallet-info\ncd tron_wallet_info\n\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n\nuvicorn app.main:app --reload\n```\n\n### With Docker\n```bash\ngit clone https://github.com/averageencoreenjoer/tron-wallet-info\ncd tron_wallet_info\n\ndocker-compose up --build\n```\n\nThe application will be available at: http://localhost:8000\n\n## Configuration\n\nCreate a `.env` file based on `.env.example`:\n```bash\ncp .env.example .env\n```\n\nAvailable environment variables:\n- `DATABASE_URL` - Database URL (default: sqlite:///./tron_wallet.db)\n- `TRON_NETWORK` - Tron network (shasta/mainnet)\n\n## API Endpoints\n\n### Getting wallet info\n`POST /wallet-info`\n```json\n{\n\"address\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\"\n}\n```\n\nResponse example:\n```json\n{\n\"address\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n\"trx_balance\": 1000000,\n\"bandwidth\": 500,\n\"energy\": 200\n}\n```\n\n### Getting request history\n`GET /request-history?skip=0\u0026limit=10`\n\nExample answer:\n```json\n{\n  \"count\": 15,\n  \"results\": [\n    {\n      \"id\": 15,\n      \"address\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n      \"trx_balance\": 1000000,\n      \"bandwidth\": 500,\n      \"energy\": 200,\n      \"created_at\": \"2023-10-05T12:00:00\"\n    },\n    ...\n  ]\n}\n```\n\n## Testing\n```bash\n# Running tests\npytest -v\n\n# Running tests with coverage\npytest --cov=app --cov-report=html\n```\n\n## API documentation\nAfter running the application, the documentation is available at:\n- Swagger UI: http://localhost:8000/docs\n- ReDoc: http://localhost:8000/redoc\n\n## Using Docker\n\n### Building an image\n```bash\ndocker-compose build\n```\n\n### Starting a service\n```bash\ndocker-compose up\n```\n\n### Stopping the service\n```bash\ndocker-compose down\n```\n\n### To use PostgreSQL\nUncomment the db section in docker-compose.yml and set:\n```env\nDATABASE_URL=postgresql://tron:tronpass@db:5432/tron_db\n```\n\n## Database migrations\n```bash\n# Generating migrations\nalembic revision --autogenerate -m \"Description of changes\"\n\n# Applying migrations\nalembic upgrade head\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverageencoreenjoer%2Ftron-wallet-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faverageencoreenjoer%2Ftron-wallet-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverageencoreenjoer%2Ftron-wallet-info/lists"}