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":{"Artistic Technique":"Digital Painting","Description":"The painting is styled in a hyper-detailed, realistic fashion, using dark, silver and light azure hues to create a gothic, machine-inspired aesthetic. The intricate textures and ornate simplicity of the piece give off an air of baroque animals, with an attention to detail that suggests a high level of craftsmanship. The image is captured in high resolution, allowing the viewer to appreciate every subtle detail and nuance. This NFT illustration 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.","Mood":"Captivating","Motifs":"Baroque Animals","Primary Colors":"Dark Silver","Style":"Hyper-detailed"},"id":2,"image":"ipfs://QmbhxNDkJnRssfVDRSdPJM6J5j67jvWgK6uKwqnwHB4J6r/nested-treasures-2.jpg","name":"Nested Treasures #2"}' Name:metadataFormat Type:string Value:'json'] |