Skip to main content

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.

By default, the EOSUSA WAX API is used to post transactions to blockchain. It can be changed while creating an object. Due to some limitations only EOSUSA API can be used to get transaction info from blockchain.

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)

# Mint given number of same assets and then try to fetch their IDs
assetsender.mint_assets_and_get_ids("rawmaterials", "318738", "recipient.wam", 5)

The methods return tuple or list of tuples where on the first place is the asset ID or id-schema-template tuple, and on the second place either hash of successful transaction or 'False' if transaction failed for some reason. For example:

[(('1099511811820', 'rawmaterials', '318738'), False),
(('1099511811819',), '6b80b145aa261736941583ed17802a8be0254cd21a78b6bb415c923ec64ad32c')]

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.

Donation

If you feel like you can send any amount of WAX to the WAX address 24.gm

Metadata

Release files for waxNFTdispatcher 0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for waxNFTdispatcher 0.3.6
File Size Uploaded Provenance
waxnftdispatcher-0.3.6.tar.gz 6.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for waxNFTdispatcher 0.3.6
File Interpreter ABI Platform
waxnftdispatcher-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / waxnftdispatcher-0.3.6.tar.gz

Download URL waxnftdispatcher-0.3.6.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7ee67a802c5665547d0699ebfc4a5f35c368ef8cc3d1052c64f9daf4e1b7a44c
BLAKE2b-256 checksum
How to use checksums
e3cdd2020034820b5ca0e465762d7b84fa8233670b2145233add4844e1c1e663
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.9.2 Linux/6.6.13-00891-g1af58030b5c8

Release files / waxnftdispatcher-0.3.6-py3-none-any.whl

Download URL waxnftdispatcher-0.3.6-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34bd63593ccd31ee86d511873a73c18f98e12cb01cec3c1015ca725718bb718d
BLAKE2b-256 checksum
How to use checksums
014bea8c28e48c76afde8975db7b6c5018b4a60e1f60c8e7a7aac9fc6e2933aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.9.2 Linux/6.6.13-00891-g1af58030b5c8

Security for waxNFTdispatcher 0.3.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page