Aller au contenu principal

👾 Mint NFT

🚨 Read Before 🚨

Create NFT

from lunespy.tx.issue import mint_NFT_factory
from lunespy.wallet import wallet_factory

sender = wallet_factory()

tx = mint_NFT_factory(
description="This Token Is Not Real, Only Test",
sender_public_key=sender.public_key,
name="My Test Token"
)

Sign Transaction

tx.sign(sender.private_key)
Comming Soon

Broadcast Transaction

tx.broadcast()

Full Example

from lunespy.tx.issue import mint_NFT_factory
from lunespy.wallet import wallet_factory

sender = wallet_factory()

tx = mint_NFT_factory(
# public key of sender
sender_public_key=sender.public_key,
# discription about your token, max size of 1000 char
description="This Token Is Not Real, Only Test",
# name of your Token
name="My Test Token",
# if you want to send a different fee amount, the default is 100000000 (1 Lunes)
fee=100000000
)

tx.sign(
# private key of sender for sign the transaction
sender.private_key
)

tx.broadcast(
# url or ip:port of the node that will broadcast the transaction,
# (MAINNET) is https://lunesnode.lunes.io (defaul)
# (TESTNET) https://lunesnode-testnet.lunes.io
node = "https://my-full-node.com"
)