{"id":22766598,"url":"https://github.com/dnesbala/ton-transaction-api","last_synced_at":"2026-04-09T09:36:34.122Z","repository":{"id":266314355,"uuid":"893913914","full_name":"dnesbala/ton-transaction-api","owner":"dnesbala","description":"TON API for fetching user transactions \u0026 getting user balance","archived":false,"fork":false,"pushed_at":"2024-12-11T10:57:01.000Z","size":189,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T12:33:50.072Z","etag":null,"topics":["express","mikro-orm","nodejs","typescript","zod"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dnesbala.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":"2024-11-25T12:33:41.000Z","updated_at":"2024-12-11T10:57:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ea215f9-6a1a-4106-95af-80e313efbb9b","html_url":"https://github.com/dnesbala/ton-transaction-api","commit_stats":null,"previous_names":["dnesbala/ton-transaction-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnesbala%2Fton-transaction-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnesbala%2Fton-transaction-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnesbala%2Fton-transaction-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnesbala%2Fton-transaction-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnesbala","download_url":"https://codeload.github.com/dnesbala/ton-transaction-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246307932,"owners_count":20756478,"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":["express","mikro-orm","nodejs","typescript","zod"],"created_at":"2024-12-11T13:13:10.083Z","updated_at":"2025-12-30T23:17:35.193Z","avatar_url":"https://github.com/dnesbala.png","language":"TypeScript","readme":"# TON Transaction API\n\nA Node.js and TypeScript API for fetching user transactions and retrieving user wallet balances on the TON blockchain.\n\n## Features\n\n- **Fetch Transactions**: Retrieve transaction history for a given account address and date.\n- **Get Wallet Balance**: Check the wallet balance for a specific account address.\n\n## API Endpoints\n\n### Fetch Transactions\n\n**GET** `/api/transactions?accountAddress=\u003caccountAddress\u003e\u0026date=\u003cdate\u003e`\n\n- Retrieves transactions for a given account address and date.\n\n### Get Wallet Balance\n\n**GET** `/api/transactions/wallet-balance/\u003caccountAddress\u003e`\n\n- Retrieves the wallet balance for a specified account address.\n\n## Setup\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) (version 16 or later)\n- [TypeScript](https://www.typescriptlang.org/)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/dnesbala/ton-transaction-api\n   cd ton-transaction-api\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Configure environment variables:\n\n   - Copy the `env.example` file to `.env` at the project root.\n   - Update the values as required.\n\n     ```bash\n     cp env.example .env\n     ```\n\n### Run the Project\n\n- Development mode:\n\n  ```bash\n  npm run dev\n  ```\n\n- Production mode:\n  ```bash\n  npm run build\n  npm start\n  ```\n\n## Project Structure\n\n- **src/**: Contains the main application code.\n  - **controllers/**: API controllers for handling requests.\n  - **services/**: Business logic and interaction with TON blockchain.\n  - **repositories/**: Database and ORM configurations.\n- **env.example**: Example environment file with all required configuration variables.\n- **dist/**: Compiled production code (generated after `npm run build`).\n\n## Environment Variables\n\nThe `.env` file should include:\n\n```\nDB_NAME=\nDB_USER=\nDB_PASSWORD=\nDB_HOST=\nDB_PORT=\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnesbala%2Fton-transaction-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnesbala%2Fton-transaction-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnesbala%2Fton-transaction-api/lists"}