Skip to content

Soon to be library for generating a single use once off token (NFT) on the Stellar network

Notifications You must be signed in to change notification settings

ConnorMac/stellar-non-fungible-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stellar NFT

The NFT library creates a non-fungible token on the Stellar network. The resulting token is a 0.0000001 supply limited token from a locked Issuer account that has an IPFS hash attached to it's account data. (Although it is not pinned so will be lost if your node goes offline)

Currently the library is not opinionated about the data expected in the metadata.

Basic usage

Before running the script you will need a funded Issuer account (1.5XLM) and a funded initial owner account (1 XLM). NOTE: that the Issuer account will be locked so it will not be usable after this.

The machine running the script will also need an IPFS daemon running on localhost.

from stellar_token_factory import TokenFactory

issuer_secret = '{SECRET_1}'
owner_secret = '{SECRET_1}'
tf = TokenFactory(issuer_secret)
metadata = {
    'img': 'testing.jpg',
    'description': 'This is my first collectable!',
    'ref_url': 'This is a url for more context'
}
tx = tf.generate_non_fungible_token(owner_secret, 'FUNGI', metadata=metadata)

About

Soon to be library for generating a single use once off token (NFT) on the Stellar network

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages