tx · 9QHYnCp1MV4EcZZd9fZxFZhRfhA4LP1FukHWVCsGY3Pq 3NC2gxrsMW5rEBsJCVMjJwBhcB3nnBrUG4f: -0.01000000 Waves 2023.11.30 01:38 [2865309] smart account 3NC2gxrsMW5rEBsJCVMjJwBhcB3nnBrUG4f > SELF 0.00000000 Waves
{ "type": 13, "id": "9QHYnCp1MV4EcZZd9fZxFZhRfhA4LP1FukHWVCsGY3Pq", "fee": 1000000, "feeAssetId": null, "timestamp": 1701297528829, "version": 2, "chainId": 84, "sender": "3NC2gxrsMW5rEBsJCVMjJwBhcB3nnBrUG4f", "senderPublicKey": "E1AzspvmVgU66Pn9sgPQTc586F4eJ4nnWDadbPWyqqXN", "proofs": [ "2aTzApD1EBDHU8QPCCkYbsrZx7jbqoN9FuDXTtCbLtnQ6xp5hR1c2uQuUyx5VmbWA5k3Wx9yXD727t95rw46Y3rY" ], "script": "base64:BgIOCAISBQoDCAgCEgMKAQgAAgFpAQ9pc3N1ZUFuZFNhdmVOZnQDBG5hbWULZGVzY3JpcHRpb24HY29udGVudAQFaXNzdWUJAMIIBQUEbmFtZQULZGVzY3JpcHRpb24AAQAABwQCaWQJANgEAQkAuAgBBQVpc3N1ZQMJAGYCCQDIAQEFB2NvbnRlbnQJAGgCAA8AgAgJAAIBAh50b28gYmlnIGNvbnRlbnQsIG1heCAxNUsgYnl0ZXMJAJQKAgkAzAgCBQVpc3N1ZQkAzAgCCQELQmluYXJ5RW50cnkCBQJpZAUHY29udGVudAUDbmlsBQJpZAFpAQ5nZXROZnRSRUFET05MWQEHYXNzZXRJZAkAlAoCBQNuaWwJAKEIAQUHYXNzZXRJZADArwR9", "height": 2865309, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8icnVbJR6Fws6qEwH1XpXYhenGANTmaWS6a9fN6PDScv Next: 3JGejpD9VKQ6YLDtBh9pYXDZ4GymzwT2mG9YSJmzhAaE Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func issueAndSaveNft (name,description,content) = { | |
8 | + | let issue = Issue(name, description, 1, 0, false) | |
9 | + | let id = toBase58String(calculateAssetId(issue)) | |
10 | + | if ((size(content) > (15 * 1024))) | |
11 | + | then throw("too big content, max 15K bytes") | |
12 | + | else $Tuple2([issue, BinaryEntry(id, content)], id) | |
13 | + | } | |
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | @Callable(i) | |
18 | + | func getNftREADONLY (assetId) = $Tuple2(nil, getBinary(assetId)) | |
19 | + | ||
20 | + |
github/deemru/w8io/026f985 18.78 ms ◑