merchant-wallet


Namemerchant-wallet JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/ydaniels/HD-Merchant-wallet
SummaryReceive cryptocurrency payment, generate hd cryptocurrency wallet addresses and verifying payment made to an address.
upload_time2021-05-25 02:25:44
maintainer
docs_urlNone
authorYomi D
requires_python
licenseMIT
keywords electrum web network internet btc bitcoin blockchain hd wallet crptocurrency crypto merchant
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            What is HD Merchant Wallet ?
===============
It is a simple lightweight tool for receiving cryptocurrency payment, generating hd cryptocurrency wallet addresses and verifying payment made to an address. You can
receive cryptocurrency payment easily in any python script or web app in just 3 simple steps. It perfectly works with electrum wallet so you can receive payment with this tool and spend your coins with electrum wallet.

Installation
==============
pip install merchant-wallet

Running
========

  
 - Get your master public key from a local or personal wallet e.g Electrum.
 - Generate addresses with this script, addresses will correspond with addresses on your electrum wallet, so you can easily spend your coins.
 - Give address for payment and verify transaction using this tool.


Accept Bitcoin on a website In 3 Steps
======================
 
          from merchant_wallet.backends.btc import BitcoinBackend
          
          
          btc = BitcoinBackend('master_public_key_gotten_from_an_offline_wallet')
          
          btc.generate_new_address(index=0) #index=0 will give the first address displayed on your electrum wallet, increase index to get more addresses as displayed on your wallet
          
          btc.confirm_address_payment(
            address="1Ge6rDuyCdYVGhXZjcK4251q67GXMKx6xK", total_crypto_amount=0.01, confirmation_number=3
          )#Confirm payment on the address with the specified confirmation and amount it will return a tuple of transaction status and value of transaction
          
          #Returned values
          #Unconfirmed payment -> (UNCONFIRMED_ADDRESS_BALANCE, transaction_hash)
          #Confirmed payment -> (CONFIRMED_ADDRESS_BALANCE, sent_value)
          #Underpaid payment -> (UNDERPAID_ADDRESS_BALANCE, remaining value)
          #No transaction -> (NO_HASH_ADDRESS_BALANCE, None )
          btc.confirm_address_payment(
            address="1Ge6rDuyCdYVGhXZjcK4251q67GXMKx6xK", total_crypto_amount=0.01, confirmation_number=5000, tx_hash='hash_returned_when_transaction_was_unconfirmed'
          )
Note
======================    
  This tool depends on blockcypher for verifying blockchain transactions and uses forex-python tool for calculating crypto prices
    
 
 
Helper methods
======================    
  
- bitcoin.convert_to_fiat( amount, currency)
- bitcoin.convert_from_fiat(amount, currency)
- Check tests for more
                 
Todo
======================              
 - Add more crypto currency support
 - Add support for local private blockchain service e.g bitcoind
    
**LICENSE**
=========
MIT
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ydaniels/HD-Merchant-wallet",
    "name": "merchant-wallet",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "electrum web network internet btc bitcoin blockchain hd wallet crptocurrency crypto merchant",
    "author": "Yomi D",
    "author_email": "yomid4all@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cf/7d/1cec76ea13f445a7288938091725648e6cc68026ea02012d1a8d93f057be/merchant_wallet-0.1.1.tar.gz",
    "platform": "",
    "description": "What is HD Merchant Wallet ?\n===============\nIt is a simple lightweight tool for receiving cryptocurrency payment, generating hd cryptocurrency wallet addresses and verifying payment made to an address. You can\nreceive cryptocurrency payment easily in any python script or web app in just 3 simple steps. It perfectly works with electrum wallet so you can receive payment with this tool and spend your coins with electrum wallet.\n\nInstallation\n==============\npip install merchant-wallet\n\nRunning\n========\n\n  \n - Get your master public key from a local or personal wallet e.g Electrum.\n - Generate addresses with this script, addresses will correspond with addresses on your electrum wallet, so you can easily spend your coins.\n - Give address for payment and verify transaction using this tool.\n\n\nAccept Bitcoin on a website In 3 Steps\n======================\n \n          from merchant_wallet.backends.btc import BitcoinBackend\n          \n          \n          btc = BitcoinBackend('master_public_key_gotten_from_an_offline_wallet')\n          \n          btc.generate_new_address(index=0) #index=0 will give the first address displayed on your electrum wallet, increase index to get more addresses as displayed on your wallet\n          \n          btc.confirm_address_payment(\n            address=\"1Ge6rDuyCdYVGhXZjcK4251q67GXMKx6xK\", total_crypto_amount=0.01, confirmation_number=3\n          )#Confirm payment on the address with the specified confirmation and amount it will return a tuple of transaction status and value of transaction\n          \n          #Returned values\n          #Unconfirmed payment -> (UNCONFIRMED_ADDRESS_BALANCE, transaction_hash)\n          #Confirmed payment -> (CONFIRMED_ADDRESS_BALANCE, sent_value)\n          #Underpaid payment -> (UNDERPAID_ADDRESS_BALANCE, remaining value)\n          #No transaction -> (NO_HASH_ADDRESS_BALANCE, None )\n          btc.confirm_address_payment(\n            address=\"1Ge6rDuyCdYVGhXZjcK4251q67GXMKx6xK\", total_crypto_amount=0.01, confirmation_number=5000, tx_hash='hash_returned_when_transaction_was_unconfirmed'\n          )\nNote\n======================    \n  This tool depends on blockcypher for verifying blockchain transactions and uses forex-python tool for calculating crypto prices\n    \n \n \nHelper methods\n======================    \n  \n- bitcoin.convert_to_fiat( amount, currency)\n- bitcoin.convert_from_fiat(amount, currency)\n- Check tests for more\n                 \nTodo\n======================              \n - Add more crypto currency support\n - Add support for local private blockchain service e.g bitcoind\n    \n**LICENSE**\n=========\nMIT",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Receive cryptocurrency payment, generate hd cryptocurrency wallet addresses and verifying payment made to an address.",
    "version": "0.1.1",
    "split_keywords": [
        "electrum",
        "web",
        "network",
        "internet",
        "btc",
        "bitcoin",
        "blockchain",
        "hd",
        "wallet",
        "crptocurrency",
        "crypto",
        "merchant"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "fe2c161814746c0d5e5576b65231480c",
                "sha256": "d48e236f9f0a861fee018e3f5592efeea8f404cce3b6a91fffeb3343462ff75e"
            },
            "downloads": -1,
            "filename": "merchant_wallet-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fe2c161814746c0d5e5576b65231480c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6375,
            "upload_time": "2021-05-25T02:25:44",
            "upload_time_iso_8601": "2021-05-25T02:25:44.523988Z",
            "url": "https://files.pythonhosted.org/packages/cf/7d/1cec76ea13f445a7288938091725648e6cc68026ea02012d1a8d93f057be/merchant_wallet-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-25 02:25:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "ydaniels",
    "error": "Could not fetch GitHub repository",
    "lcname": "merchant-wallet"
}
        
Elapsed time: 0.23165s