{"id":25424614,"url":"https://github.com/foscomputerservices/cryptoscraper","last_synced_at":"2025-05-14T01:32:23.581Z","repository":{"id":65752069,"uuid":"598056634","full_name":"foscomputerservices/CryptoScraper","owner":"foscomputerservices","description":"CryptoScraper is a package for generalizing the retrieval of information from crypto block chains","archived":false,"fork":false,"pushed_at":"2023-10-07T12:53:35.000Z","size":231,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T03:07:33.679Z","etag":null,"topics":["cryptocurrency","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/foscomputerservices.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-06T09:58:24.000Z","updated_at":"2025-01-02T04:11:03.000Z","dependencies_parsed_at":"2023-06-28T20:00:18.143Z","dependency_job_id":null,"html_url":"https://github.com/foscomputerservices/CryptoScraper","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":"0.27586206896551724","last_synced_commit":"7be2a9192f98c8f4f3c449725a29125f78332f6f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foscomputerservices%2FCryptoScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foscomputerservices%2FCryptoScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foscomputerservices%2FCryptoScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foscomputerservices%2FCryptoScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foscomputerservices","download_url":"https://codeload.github.com/foscomputerservices/CryptoScraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239207403,"owners_count":19599966,"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":["cryptocurrency","swift"],"created_at":"2025-02-16T23:16:49.754Z","updated_at":"2025-02-16T23:16:50.982Z","avatar_url":"https://github.com/foscomputerservices.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CryptoScraper\n\n![Run unit tests](https://github.com/foscomputerservices/CryptoScraper/actions/workflows/ci.yml/badge.svg) ![Swift Package Manager](https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=flat) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ffoscomputerservices%2FCryptoScraper%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/foscomputerservices/CryptoScraper) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ffoscomputerservices%2FCryptoScraper%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/foscomputerservices/CryptoScraper)\n\nCryptoScraper is a package for generalizing the retrieval of information from crypto block chains.\n\n## How To Get Started\n\n### Swift Package Manager\n\nCryptoScraper supports the [Swift Package Manager](https://www.swift.org/package-manager/).  To include CryptoScraper in your project add the following to your Package.swift file:\n\n```\n.package(url: \"git@github.com:foscomputerservices/CryptoScraper.git\", branch: \"main\"),\n```\n\n### API Keys\n\nTo begin, api keys need to be set in order to access various services.  These keys are stored in environment variables as follows:\n\n| Service | Environment Variable | Required |\n|----------------- | ----------------- | -------- |\n| [Etherscan](https://docs.etherscan.io/getting-started/viewing-api-usage-statistics#creating-an-api-key) | ETHER_SCAN_KEY | No | \n| [Fantom](https://docs.etherscan.io/getting-started/viewing-api-usage-statistics#creating-an-api-key) | FTM_SCAN_KEY | No |\n| [BinanceSmartChain](https://docs.bscscan.com/getting-started/viewing-api-usage-statistics) | BSC_SCAN_KEY | No | \n| [Polygon](https://docs.polygonscan.com/getting-started/viewing-api-usage-statistics) | POLYGON_SCAN_KEY | No |\n| [Optimism](https://docs.optimism.etherscan.io/getting-started/viewing-api-usage-statistics) | OPTIMISTIC_ETHER_SCAN_KEY | No |\n| [CoinGecko](https://www.coingecko.com/en/api) | COIN_GECKO_KEY| No |\n| [CoinMarketCap](https://www.coingecko.com/en/api) | COIN_MARKETCAP_KEY| No | \n\nTo begin using the framework call the initialization method to initialize the block chains with their contract data.\n\n```swift\n\ntry await CryptoScraper.initialize()\n\n```\n\n## Testing\n\nIn order for testing to succeed, a test contract is needed for each chain.  These contracts can be provided in the environment as follows:\n\n| Service | Environment Variable |\n| --------------- | -------------------- |\n| Bitcoin | BTC_TEST_CONTRACT_ADDRESS |\n| Ethereum | ETH_TEST_CONTRACT_ADDRESS |\n| Fantom | FTM_TEST_CONTRACT_ADDRESS |\n| BNB | BSC_TEST_CONTRACT_ADDRESS |\n| Matic | POLYGON_TEST_CONTRACT_ADDRESS |\n| Optimism | OPTIMISTIC_TEST_CONTRACT_ADDRESS |\n| Tron | TRON_TEST_CONTRACT_ADDRESS |\n\n## Full Documentation\n\nFor complete documentation, please refer to the DocC documentation in Xcode or [here](https://swiftpackageindex.com/foscomputerservices/CryptoScraper) for an online version (see the documentation tab in the top-right).\n\n## Contributing\n\nAll contributions are welcome!  Please see [CONTRIBUTING.md](https://github.com/foscomputerservices/CryptoScraper/blob/main/CONTRIBUTING.md) for more details.\n\n## Maintainers\n\nThis project is maintained by [David Hunt](https://www.linkedin.com/in/davidhun/) owner of [FOS Computer services, LLC](https://www.linkedin.com/company/1856731).\n\n## License\n\nCryptoScraper is under the MIT License.  See the [LICENSE](https://github.com/foscomputerservices/CryptoScraper/blob/main/LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoscomputerservices%2Fcryptoscraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoscomputerservices%2Fcryptoscraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoscomputerservices%2Fcryptoscraper/lists"}