SC CODE: Function InitializePrivate(collection String, metadataFormat String, metadata String) Uint64
1 IF EXISTS("minter") == 1 THEN GOTO 11
2 STORE("minter", SIGNER())
3 STORE("type", "G45-NFT")
4 STORE("owner", "")
5 STORE("timestamp", BLOCK_TIMESTAMP())
6 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
7 STORE("collection", collection)
8 STORE("metadataFormat", metadataFormat)
9 STORE("metadata", metadata)
10 RETURN 0
11 RETURN 1
End Function
Function DisplayNFT() Uint64
1 IF ADDRESS_STRING(SIGNER()) == "" THEN GOTO 5
2 IF ASSETVALUE(SCID()) != 1 THEN GOTO 5
3 STORE("owner", ADDRESS_STRING(SIGNER()))
4 RETURN 0
5 RETURN 1
End Function
Function RetrieveNFT() Uint64
1 IF LOAD("owner") != ADDRESS_STRING(SIGNER()) THEN GOTO 5
2 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
3 STORE("owner", "")
4 RETURN 0
5 RETURN 1
End Function |
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function InitializePrivate(collection String, metadataFormat String, metadata String) Uint64
1 IF EXISTS("minter") == 1 THEN GOTO 11
2 STORE("minter", SIGNER())
3 STORE("type", "G45-NFT")
4 STORE("owner", "")
5 STORE("timestamp", BLOCK_TIMESTAMP())
6 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
7 STORE("collection", collection)
8 STORE("metadataFormat", metadataFormat)
9 STORE("metadata", metadata)
10 RETURN 0
11 RETURN 1
End Function
Function DisplayNFT() Uint64
1 IF ADDRESS_STRING(SIGNER()) == "" THEN GOTO 5
2 IF ASSETVALUE(SCID()) != 1 THEN GOTO 5
3 STORE("owner", ADDRESS_STRING(SIGNER()))
4 RETURN 0
5 RETURN 1
End Function
Function RetrieveNFT() Uint64
1 IF LOAD("owner") != ADDRESS_STRING(SIGNER()) THEN GOTO 5
2 SEND_ASSET_TO_ADDRESS(SIGNER(), 1, SCID())
3 STORE("owner", "")
4 RETURN 0
5 RETURN 1
End Function' Name:collection Type:string Value:'fbfac059ac10bce6a3e303f08cc8ae22c3697c09cd3b2e86ff26ad10a61e5bfc' Name:metadata Type:string Value:'{"attributes":{"Background":"Dark Aquamarine","Description":"This NFT digital art image features a stunning nesting doll, painted in a variety of beautiful colors and styled with surrealistic elements. The piece is dominated by dark crimson and dark aquamarine hues, which are used to create a dramatic, visually striking effect. The portraitures are photographically detailed, capturing every nuance and feature of the doll's intricate design. The use of gemstone and enchanting lighting adds an extra layer of depth and richness to the image, elevating it from a mere portrait to a work of art. The style of the piece is realistic, with subtle fantasy elements woven in to create a unique and captivating aesthetic. The dramatic lighting and gemstones are digitally enhanced, adding an extra layer of visual impact to an already stunning image. This NFT digital art image is a truly unique and captivating addition to any collection.Introducing the exquisite Nested Treasures NFT collection, featuring a series of one - of -a - kind digital art pieces inspired by the timeless beauty of the traditional Matryoshka doll.Each NFT in this collection showcases a unique interpretation of the matryoshka design,with different themes and intricate patterns, that truly bring this universally beloved symbol to life.With only a limited number of pieces available, the Nested Treasures collection is a rare and highly sought - after addition to any digital art collection.Don 't miss your chance to own a piece of this stunning art in form of a truly unique NFT.","Lips":"Ruby Red","Mood":"Enchanting","Motifs":"Gemstones","Object":"Nesting Doll","Painting Style":"Digitally Enhanced","Style":"Fantasy Elements"},"id":3,"image":"ipfs://QmYFcp1SHFeB2zNbRUvgU2QBdcXA4mFZvypFJkkmEnY9qE/nested-treasures-3-sm.jpg","name":"Nested Treasures #3"}' Name:metadataFormat Type:string Value:'json'] |