Skip to main content

๐Ÿ‘พ 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"
)