This library will help you to transfer or to mint NFTs on the WAX blockchain
Project description
waxNFTdispatcher
This library will help you to transfer or to mint NFTs on 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
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
File details
Details for the file waxNFTdispatcher-0.2.2.tar.gz
.
File metadata
- Download URL: waxNFTdispatcher-0.2.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66bee4dd8fa1d25f2f368d07e4962393da5e097474d30aa8964bd750befcd759 |
|
MD5 | e018a930218c8849627969a10d149662 |
|
BLAKE2b-256 | 66cc993814aabac321030a68364252b6165d3012f4885b59c7ec1c17cbb40df3 |
File details
Details for the file waxNFTdispatcher-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: waxNFTdispatcher-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b95e0cc6fc28061deea6bb8926b06d702f25c3da3c482d6d53eaa754e4aef76 |
|
MD5 | 4c1e36ac7b5bb3835e01ecc6ade21e32 |
|
BLAKE2b-256 | a5b27e7690661cb324a25db3624d378f26367e32c2d10269262474d129af4b2d |