CryptoScraper

0.3.0

CryptoScraper is a package for generalizing the retrieval of information from crypto block chains
foscomputerservices/CryptoScraper

What's New

Added Bitcoin, Tron and Coin Market Cap support

2023-02-27T09:44:20Z

What's Changed

Full Changelog: v0.2.2...v0.3.0

CryptoScraper

Run unit tests Swift Package Manager

CryptoScraper is a package for generalizing the retrieval of information from crypto block chains.

How To Get Started

Swift Package Manager

CryptoScraper supports the Swift Package Manager. To include CryptoScraper in your project add the following to your Package.swift file:

.package(url: "git@github.com:foscomputerservices/CryptoScraper.git", branch: "main"),

API Keys

To begin, api keys need to be set in order to access various services. These keys are stored in environment variables as follows:

Service Environment Variable Required
Etherscan ETHER_SCAN_KEY No
Fantom FTM_SCAN_KEY No
BinanceSmartChain BSC_SCAN_KEY No
Polygon POLYGON_SCAN_KEY No
Optimism OPTIMISTIC_ETHER_SCAN_KEY No
CoinGecko COIN_GECKO_KEY No
CoinMarketCap COIN_MARKETCAP_KEY No

To begin using the framework call the initialization method to initialize the block chains with their contract data.

try await CryptoScraper.initialize()

Testing

In order for testing to succeed, a test contract is needed for each chain. These contracts can be provided in the environment as follows:

Service Environment Variable
Bitcoin BTC_TEST_CONTRACT_ADDRESS
Ethereum ETH_TEST_CONTRACT_ADDRESS
Fantom FTM_TEST_CONTRACT_ADDRESS
BNB BSC_TEST_CONTRACT_ADDRESS
Matic POLYGON_TEST_CONTRACT_ADDRESS
Optimism OPTIMISTIC_TEST_CONTRACT_ADDRESS
Tron TRON_TEST_CONTRACT_ADDRESS

Full Documentation

For complete documentation, please refer to the DocC documation in Xcode or here for an online version (see the documentation tab in the top-right).

Contributing

All contributions are welcome! Please see CONTRIBUTING.md for more details.

Maintainers

This project is maintained by David Hunt owner of FOS Computerservices, LLC.

License

CryptoScraper is under the MIT License. See the LICENSE file for more information.

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Mon Oct 21 2024 10:09:22 GMT-0900 (Hawaii-Aleutian Daylight Time)