Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/al-chris/crypto-tests
https://github.com/al-chris/crypto-tests
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/al-chris/crypto-tests
- Owner: al-chris
- License: mit
- Created: 2025-01-13T08:17:43.000Z (29 days ago)
- Default Branch: main
- Last Pushed: 2025-01-22T15:47:14.000Z (20 days ago)
- Last Synced: 2025-01-22T16:36:10.265Z (20 days ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Testing Etherscan and Remitano APIs
This project contains scripts for monitoring Ethereum transactions, interacting with the Remitano API, and tracking Ethereum wallet balances.
## Setup
1. Clone the repository:
```sh
git clone https://github.com/yourusername/crypto-tests.git
cd crypto-tests
```2. Create a virtual environment and activate it:
```sh
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```3. Install the required dependencies:
```sh
pip install -r requirements.txt
```4. Create a `.env` file in the project root directory and add your API keys and other environment variables:
```env
ETHERSCAN_API_KEY=your_etherscan_api_key
WEBHOOK_CALLBACK_URL=your_webhook_callback_url
REMITANO_ACCESS_KEY=your_remitano_access_key
REMITANO_SECRET_KEY=your_remitano_secret_key
REMITANO_AUTHENTICATOR=your_remitano_authenticator
REMITANO_BASE_URL=https://api.remitano.com
```## Usage
### Monitoring Ethereum Transactions
The `trx_verification.py` script monitors an Ethereum wallet for new transactions and sends a webhook notification.
Example usage:
```sh
python trx_verification.py
```### Interacting with Remitano API
The `test_remitano.py` script provides functions to interact with the Remitano API, such as fetching coin accounts and currency information.
Example usage:
```python
from test_remitano import get_coin_accounts, get_currenciescoin_accounts = get_coin_accounts('btc', '')
if coin_accounts:
print(coin_accounts)currencies = get_currencies()
if currencies:
print(currencies)
```### Tracking Ethereum Wallet Balance
The `eth_wallet_tracking.py` script fetches and plots the balance of an Ethereum wallet over time.
Example usage:
```sh
python eth_wallet_tracking.py
```## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.