Totally better currency frfr (now it's semi-decentralised!?)
Project description
💰 Harzcoin Python SDK v4.1.0
A lightweight Python SDK for interacting with the Harzcoin ecosystem — enabling wallet management, SHA256 proof-of-work mining, and secure G-Coin (or Harzcoin) transfers via a Supabase backend.
🚀 Features
- 🔐 Create and manage wallets
- 🪙 Send and receive Harzcoin (G-Coins)
- ⚒️ Mine Harzcoin with SHA256 + difficulty-based dynamic rewards
- 📡 Works seamlessly with Supabase Functions
- 🛠 Utility functions for wallet creation, viewing, and helpful tips
📦 Installation
Just clone the repo or download the script:
git clone https://github.com/yourusername/harzcoin-sdk.git
Or directly download harzcoin.py.
🧠 Requirements
- Python 3.7+
requestsmodule (standard, but run below if not installed)
pip install requests
📚 Usage
1. Initialize a Wallet
from harzcoin import wallet
mywallet = wallet(walletId="hz8264812", walletKey="bau-2hd-ako")
2. Send Harzcoin (Quick Transfer)
mywallet.quick_send(receiverId="hz1234567", bal=50.0)
3. Advanced Transfer (Custom Fee Wallet)
mywallet.advanced_transfer(
walletId="hz8264812",
walletKey="bau-2hd-ako",
receiverId="hz1234567",
bal=100.0,
user_fee="hz000BURN"
)
4. Start Mining (SHA256 Proof of Work)
result = mywallet.mine_sha256()
if result:
print("✅ Successfully mined block:", result)
🔧 Utility Functions
Import utilities for handy tools:
from harzcoin import utilities
util = utilities()
➕ Create a Wallet
util.create()
👁 View Wallet Info
util.view("hz8264812")
❓ Help Command
util.help("burn") # returns burn wallet address
util.help("hcmc") # returns central wallet
🧱 Mining Explained
- Uses
SHA256brute-force with dynamic difficulty. - Reward =
400 * difficulty - You get paid automatically to your wallet once the hash is found.
- Prevents duplicate mining by remembering the last hash.
🌍 API Endpoint
Hosted on Supabase Edge Functions:
https://wnafumlmiulybbkqauew.supabase.co/functions/v1
Built-in endpoints:
/create→ Create wallet/wallet-view→ View wallet data/send→ Send Harzcoin/update-mining-block→ Get latest mining info
🧪 Example Main Script
if __name__ == "__main__":
mywallet = wallet("hz8264812", "bau-2hd-ako")
result = mywallet.mine_sha256()
print(result)
🔐 Security
- Never expose your
walletKeypublicly. - Always use HTTPS when interacting with APIs.
- This SDK is not production-hardened, so do not use for real money without auditing.
📜 License
MIT License
🧙♂️ Author
Created by justharsiz Powered by Moracle Softworks
"Build the chain. Be the node. Earn the coin." 🔗
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file harzcoin-4.3.0.tar.gz.
File metadata
- Download URL: harzcoin-4.3.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb8365e1f0317034433d0bd387c7701a01ec82c980e9703ae9cf79af8e43a00
|
|
| MD5 |
5688cb1060de414f010602814a062bf4
|
|
| BLAKE2b-256 |
7643b0f5d4d47a39c2bcc5bf18976f055158fd990a41d0988ca6a017470ba30d
|
File details
Details for the file harzcoin-4.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: harzcoin-4.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ccdd129d8e93aa0397e5d89628d8cddb657103f44f6d865a967e87d4cb17b9e
|
|
| MD5 |
51cbba410c7346a4ee606f03b9b5d5b2
|
|
| BLAKE2b-256 |
64938f7bc1bd0e33e0982dbda4d1243f5897cf51b6d38d5fe7d3ca14fe0539c6
|