Skip to main content

This library will help you to transfer or to mint NFTs in the WAX blockchain

Project description

waxNFTdispatcher

This library will help you to transfer or to mint NFTs in the WAX blockchain. It relies on the library pyntelope for blockchain interaction and on the library loguru for beautiful logs.

Installation

poetry add waxNFTdispatcher

or

pip install waxNFTdispatcher

Usage

from waxNFTdispatcher import AssetSender
import os

private_key = os.environ["PRIVATE_KEY"]
collection_wallet = "mywallet.wam"
collection = "pixeltycoons"
recipient = "recipient.wam"
INPUT = (("rawmaterials", 318738), ("magmaterials", 416529))

# Create object
assetsender = AssetSender(collection, collection_wallet, private_key)

# Try to find assets in the collection wallet to send them.
# If not all needed assets were in the collection wallet, the script will mint the rest.
assetsender.send_or_mint_assets(INPUT, recipient)

# Send assets with given asset ID to the given wallet
assetsender.send_assets(("1099543811405", "1099543811406"), recipient)

# Mint given number of same assets
assetsender.mint_assets("rawmaterials", 318738, "recipient.wam", 5)

Contribution

Contribution is highly welcome. Please send your pull requests or create issues with found bugs and suggestions. In your pull requests please use Black formatting.

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

waxNFTdispatcher-0.2.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

waxNFTdispatcher-0.2.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file waxNFTdispatcher-0.2.1.tar.gz.

File metadata

  • Download URL: waxNFTdispatcher-0.2.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10

File hashes

Hashes for waxNFTdispatcher-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fdc70104712f3e5c9dcce80b77d2905becf5c377e447697b6588de51d552b628
MD5 056c1939fd21d9311b117f3c209b6e44
BLAKE2b-256 13ce20c61f904ef9dd7ccdb85ed65a9885cc37bf647cb2935aebf5fc9a2ced18

See more details on using hashes here.

File details

Details for the file waxNFTdispatcher-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for waxNFTdispatcher-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c74ad170937d331475f63faa082b13178cfa9613830565a2e5e0fda802ff3f69
MD5 2b589d7661997b9c854c2ec64ffc3906
BLAKE2b-256 fb3e39bb453ca829c1e4d4425f4faf0a2af03959091e23f4711b1e91aa86e5e7

See more details on using hashes here.

Supported by

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