tx · 39nrBKsq4gY6zrsGg3eETwoJwE4zpMirPzMwJN5H2UHC
3N992tjd7EWM6dSHrdVjjjuJrLD4koNztZ9: -0.01400000 Waves
2021.12.21 14:54 [1843994] smart account 3N992tjd7EWM6dSHrdVjjjuJrLD4koNztZ9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "39nrBKsq4gY6zrsGg3eETwoJwE4zpMirPzMwJN5H2UHC",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1640087805694,
"version": 2,
"chainId": 84,
"sender": "3N992tjd7EWM6dSHrdVjjjuJrLD4koNztZ9",
"senderPublicKey": "uvA9vj4MSzAjnVrqWShC8bnbSu5CxvEbd1m68b21qEw",
"proofs": [
"3BQtB8oSfF7VngMkXf1B3RpBEDoRP9hpdQvaBbZuR4wiVH2BKYHV3BWJTAgi2nB3V194w5nChZQZTiHFqHo1AxKG"
],
"script": "base64:AAIFAAAAAAAAAEgIAhIAEgAaBgoBYRIBaRoKCgFiEgVhc3NldBoMCgFjEgdhc3NldElkGggKAWQSA3BtdBoHCgFlEgJ0eBoLCgFmEgZ2ZXJpZnkAAAAAAAAAAgAAAAFhAQAAAA5pc3N1ZUZyZWVQdXBweQAAAAAEAAAAAWIJAARCAAAABQIAAAAQUFVQUFktMTExMTExMTEtQgIAAAAQU2FtcGxlIFB1cHB5IE5GVAAAAAAAAAAAAQAAAAAAAAAAAAcEAAAAAWMJAAQ4AAAAAQUAAAABYgkABEwAAAACBQAAAAFiCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFhAAAABmNhbGxlcgAAAAAAAAAAAQUAAAABYwUAAAADbmlsAAAAAWEBAAAAC3RyYW5zZmVyTkZUAAAAAAQAAAABZAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABYQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAABYwkBAAAABXZhbHVlAAAAAQgFAAAAAWQAAAAHYXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABYQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAAWMFAAAAA25pbAAAAAEAAAABZQEAAAABZgAAAAAJAAH0AAAAAwgFAAAAAWUAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFlAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAWUAAAAPc2VuZGVyUHVibGljS2V5tPpL/w==",
"height": 1843994,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GWnMgGhi6DcLbnMGSZU1JsYdXZHs2qCv1BAVfYQAwyB
Next: Cpoq14HMRSiPGD65C9vqmgLqTVSfvfBVnpGRLqWiGDwq
Diff:
Old | New | | Differences |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | | - | func transferNFT (assetId) = [ScriptTransfer(i.caller, 1, assetId)] |
---|
| 16 | + | func transferNFT () = { |
---|
| 17 | + | let pmt = value(i.payments[0]) |
---|
| 18 | + | let assetId = value(pmt.assetId) |
---|
| 19 | + | [ScriptTransfer(i.caller, 1, assetId)] |
---|
| 20 | + | } |
---|
17 | 21 | | |
---|
18 | 22 | | |
---|
19 | 23 | | @Verifier(tx) |
---|
Full:
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 issueFreePuppy () = { |
---|
8 | 8 | | let asset = Issue("PUPPY-11111111-B", "Sample Puppy NFT", 1, 0, false) |
---|
9 | 9 | | let assetId = calculateAssetId(asset) |
---|
10 | 10 | | [asset, ScriptTransfer(i.caller, 1, assetId)] |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | | - | func transferNFT (assetId) = [ScriptTransfer(i.caller, 1, assetId)] |
---|
| 16 | + | func transferNFT () = { |
---|
| 17 | + | let pmt = value(i.payments[0]) |
---|
| 18 | + | let assetId = value(pmt.assetId) |
---|
| 19 | + | [ScriptTransfer(i.caller, 1, assetId)] |
---|
| 20 | + | } |
---|
17 | 21 | | |
---|
18 | 22 | | |
---|
19 | 23 | | @Verifier(tx) |
---|
20 | 24 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
21 | 25 | | |
---|