Skip to content

Now with NFT

Compare
Choose a tag to compare
@dkackman dkackman released this 04 Aug 20:44
· 151 commits to main since this release

Integrates the ability to upload files to nft.storage and make them into NFTs

https://www.npmjs.com/package/chia-repl/v/0.12.6

๐ŸŒฟ let dataFileInfo = {
    name: 'test-nft-by-you',
    type: 'image/jpg',
    filepath: 'E:\\nft\\flower.jpg'
};
๐ŸŒฟ let mintingInfo = {
    wallet_id: 2,
    target_address: 'txch10kn82kl6hqv47qzeh4ugmqjr5mmdcnrlymfx8wl9nrhhkyxnzfkspna7l9',
};
๐ŸŒฟ let collectionMetaData = metadataFactory.createCollectionMetadata('test-nft-collection-by-you');
๐ŸŒฟ let nftMetadata = metadataFactory.createNftMetadata('test-nft-by-you', collectionMetaData);
๐ŸŒฟ await minter.createNftFromFile(dataFileInfo, mintingInfo, nftMetadata);
{
  spend_bundle: {
    aggregated_signature: '0x99e39df189f009a4679067d212a6845b7bfec05452d9696de79907a861239de3cbd247a27c39b2ca2492740f9f4aab58028ebf035f40597d16ddeee5194f8dfaa8c8ec8e90b6c91fce60944f0e55997b443be63ed8e9dcb9d685a9b473e1b441',
    coin_solutions: [ [Object], [Object], [Object] ]
  },
  success: true,
  wallet_id: 2
}

What's Changed

Full Changelog: v0.12.4...vv0.12.6