Skip to main content

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+
  • requests module (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 SHA256 brute-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 walletKey publicly.
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harzcoin-4.0.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harzcoin-4.0.2-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file harzcoin-4.0.2.tar.gz.

File metadata

  • Download URL: harzcoin-4.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for harzcoin-4.0.2.tar.gz
Algorithm Hash digest
SHA256 e5f1c3d834ad55fb30fef3f1ca7402975a110b4473cdc51f8fc136f2dd62c283
MD5 987cbddc028ced3dda2aabc3df2674cc
BLAKE2b-256 022c5162993e5bea70290dcb81e31cc18eb4c437d0b3594d1d31b5e5ecb3e593

See more details on using hashes here.

File details

Details for the file harzcoin-4.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: harzcoin-4.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for harzcoin-4.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac7688e5c2bd2c2230373087c07654d594a0a3186cc9d0b4783b3730359259cd
MD5 d2967f34564a3c073390e2269797b682
BLAKE2b-256 7eb17c6af9ef514c810c9a4554016d992bf101148497c563c073d2b61b1ddc09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page