{"id":21347133,"url":"https://github.com/kybernetwork/ks-aggregator-api-demo","last_synced_at":"2025-03-16T03:44:28.090Z","repository":{"id":207113552,"uuid":"718461794","full_name":"KyberNetwork/ks-aggregator-api-demo","owner":"KyberNetwork","description":"Sample implementation of KyberSwap Aggregator APIs","archived":false,"fork":false,"pushed_at":"2023-11-14T06:28:29.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T16:31:09.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/KyberNetwork.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}},"created_at":"2023-11-14T05:56:42.000Z","updated_at":"2024-07-22T10:05:57.000Z","dependencies_parsed_at":"2023-11-14T07:22:55.518Z","dependency_job_id":"8d5519d6-1356-4c00-af11-edb95ec19286","html_url":"https://github.com/KyberNetwork/ks-aggregator-api-demo","commit_stats":null,"previous_names":["kybernetwork/ks-aggregator-api-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-aggregator-api-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-aggregator-api-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-aggregator-api-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KyberNetwork%2Fks-aggregator-api-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KyberNetwork","download_url":"https://codeload.github.com/KyberNetwork/ks-aggregator-api-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822277,"owners_count":20353499,"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":[],"created_at":"2024-11-22T02:12:48.900Z","updated_at":"2025-03-16T03:44:28.067Z","avatar_url":"https://github.com/KyberNetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KyberSwap Aggregator API Demo\n\nThis repository serves as a guide for developers looking to conduct swaps via the KyberSwap Aggregator APIs in a typescript environment. For simplicity, the examples are implemented purely in Node.js so that users can focus on the backend logic required to achieve swaps at superior rates.\n\nFor more performant route querying and, please refer to the `[V1]` implementation:\n1. Query Swap Route (`getSwapRouteV1()`)\n2. Encode Preferred Swap Route (`postSwapRouteV1()`)\n3. Executre Swap Transaction On-Chain (`V1Swap()`)\n\nTo aid with readability, each operation has its own `.ts` file which has been categorized under the `/src/operations/` folder. Users can run specific operations by commenting or uncommenting the relevant function in `index.ts`.\n\n## Getting Started\n\nTo run the examples:\n* Clone this repository\n* Install dependencies: `npm install`\n* Set up the [ethers.js signer](https://docs.ethers.org/v6/api/providers/#Signer) under `/src/libs/signer.ts`.\n* Run dev environment: `npm run start`\n\n## API Specifications\n\nFull API specifications, dev guide, and related sequence diagrams are available on our [Docs](https://docs.kyberswap.com/kyberswap-solutions/kyberswap-aggregator/aggregator-api-specification/evm-swaps):\n* [Executing A Swap With The Aggregator API](https://docs.kyberswap.com/kyberswap-solutions/kyberswap-aggregator/developer-guides/execute-a-swap-with-the-aggregator-api)\n* [Upgrading To APIv1](https://docs.kyberswap.com/kyberswap-solutions/kyberswap-aggregator/developer-guides/upgrading-to-apiv1)\n\n## Additional Notes\n\nNote that the code samples in this repository are not production-ready and are meant as references to get you started on integrating KyberSwap Aggregator functionality into your dApp.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Fks-aggregator-api-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkybernetwork%2Fks-aggregator-api-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkybernetwork%2Fks-aggregator-api-demo/lists"}