tx · FY5aMhucHEuXySb8xGiT89yUrVibUDnaqRur25oQ2WCW 3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz: -0.01400000 Waves 2021.12.27 02:19 [1851867] smart account 3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz > SELF 0.00000000 Waves
{ "type": 13, "id": "FY5aMhucHEuXySb8xGiT89yUrVibUDnaqRur25oQ2WCW", "fee": 1400000, "feeAssetId": null, "timestamp": 1640560769870, "version": 2, "chainId": 84, "sender": "3My2v1xv9oXvkdoVBjdoPJwsyxswKABGzXz", "senderPublicKey": "AmNGcQhk77jcLZEVysQPbYbF3QCHAzQH9Zc9oRZB963h", "proofs": [ "4BWMGd1mxP2pYnahJhoQuqU3qY1634xtqa4b1JnuCFYh9DNVnLSpZkNqe1vrrgiNXMFAKGyLFtrb84h2Zrgq6TE5" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAAWkBAAAACUNyZWF0ZU5GVAAAAAIAAAAHTkZUTmFtZQAAAA5ORlREZXNjcmlwdGlvbgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVhc3NldAkABEMAAAAHBQAAAAdORlROYW1lBQAAAA5ORlREZXNjcmlwdGlvbgAAAAAAAAAAAQAAAAAAAAAAAAcFAAAABHVuaXQAAAAAAAAAAAAEAAAAB2Fzc2V0SWQJAAQ4AAAAAQUAAAAFYXNzZXQDCQAAZgAAAAIAAAAAAAAAAAEJAAExAAAAAQUAAAAHTkZUTmFtZQkAAAIAAAABAgAAADJObyBOYW1lIE1lbnRpb25lZCBmb3IgTkZULCBQbGVhc2UgRW50ZXIgU29tZSBOYW1lLgMJAABmAAAAAgAAAAAAAAAAAQkAATEAAAABBQAAAA5ORlREZXNjcmlwdGlvbgkAAAIAAAABAgAAAEBObyBEZXNjcmlwdGlvbiBNZW50aW9uZWQgZm9yIE5GVCwgUGxlYXNlIEVudGVyIFNvbWUgRGVzY3JpcHRpb24uCQAETAAAAAIFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAHSXNzdWVyXwkAAlgAAAABBQAAAAdhc3NldElkBQAAAApjdXJyZW50S2V5CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnEYQEG", "height": 1851867, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3cv5v4LXqGe4eesNWQb5BijY1NZ9MxcjLHtbkW45VSfu Next: GLoqNjsdYiwo9kf7X7RPdXRMAFPGbAF23HHB83BDB6Wm Diff:
Old | New | Differences | |
---|---|---|---|
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | - | ||
20 | - | @Callable(i) | |
21 | - | func TransferNFT (NFTASSETID,DestinationAddress) = { | |
22 | - | let currentKey = toBase58String(i.caller.bytes) | |
23 | - | if ((1 > size(NFTASSETID))) | |
24 | - | then throw("No Name Mentioned for NFT, Please Enter Some Name.") | |
25 | - | else if ((1 > size(DestinationAddress))) | |
26 | - | then throw("No Description Mentioned for NFT, Please Enter Some Description.") | |
27 | - | else [ScriptTransfer(addressFromPublicKey(base58'FpQDPkicMwf8q2FJRfT3wfh4RxXy5C8pgqMSQRZdfW3W'), 1, fromBase58String(NFTASSETID))] | |
28 | - | } | |
29 | - | ||
30 | - | ||
31 | 19 | @Verifier(tx) | |
32 | 20 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
33 | 21 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func CreateNFT (NFTName,NFTDescription) = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let asset = Issue(NFTName, NFTDescription, 1, 0, false, unit, 0) | |
10 | 10 | let assetId = calculateAssetId(asset) | |
11 | 11 | if ((1 > size(NFTName))) | |
12 | 12 | then throw("No Name Mentioned for NFT, Please Enter Some Name.") | |
13 | 13 | else if ((1 > size(NFTDescription))) | |
14 | 14 | then throw("No Description Mentioned for NFT, Please Enter Some Description.") | |
15 | 15 | else [asset, StringEntry(("Issuer_" + toBase58String(assetId)), currentKey), ScriptTransfer(addressFromPublicKey(i.callerPublicKey), 1, assetId)] | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | - | ||
20 | - | @Callable(i) | |
21 | - | func TransferNFT (NFTASSETID,DestinationAddress) = { | |
22 | - | let currentKey = toBase58String(i.caller.bytes) | |
23 | - | if ((1 > size(NFTASSETID))) | |
24 | - | then throw("No Name Mentioned for NFT, Please Enter Some Name.") | |
25 | - | else if ((1 > size(DestinationAddress))) | |
26 | - | then throw("No Description Mentioned for NFT, Please Enter Some Description.") | |
27 | - | else [ScriptTransfer(addressFromPublicKey(base58'FpQDPkicMwf8q2FJRfT3wfh4RxXy5C8pgqMSQRZdfW3W'), 1, fromBase58String(NFTASSETID))] | |
28 | - | } | |
29 | - | ||
30 | - | ||
31 | 19 | @Verifier(tx) | |
32 | 20 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
33 | 21 |
github/deemru/w8io/026f985 25.01 ms ◑