tx · 4ut6wkDuTpGWkjjppM3e8pANqRs6Aojj9wF1Huirh58H
3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6: -0.01000000 Waves
2021.04.08 15:18 [1473459] smart account 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6 > SELF 0.00000000 Waves
{
"type": 13,
"id": "4ut6wkDuTpGWkjjppM3e8pANqRs6Aojj9wF1Huirh58H",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1617884347371,
"version": 2,
"chainId": 84,
"sender": "3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6",
"senderPublicKey": "G6gPQLsHXcXB4mNCeRfD2nra9dBGiPpeXEKYz1oWTzZ1",
"proofs": [
"3yvWGQSkG6s5mNdQa55UbJMRDeRDoXHsvfMAFJspVV2mypxKSCNB4kK6HtekrU3riKEuqBZ5neNixStFtdvq6TTG"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAHY2hlY2tQSAAAAAAEAAAADWt1bmRlbkFkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAHcGhWYWx1ZQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAA1rdW5kZW5BZHJlc3NlAgAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAwkAAAAAAAACBQAAAAdwaFZhbHVlAgAAAARoYWxvCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADWt1bmRlbkFkcmVzc2UAAAAAAAAPQkAIBQAAAAFpAAAACmZlZUFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAAdub3RoaW5nAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBgZV10ft",
"height": 1473459,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 8odmb9wc9a6y7nSBkyKKqRfLKeRkMGbDYEsMDcS4dojD
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func checkPH () = { |
---|
| 8 | + | let kundenAdresse = addressFromPublicKey(i.callerPublicKey) |
---|
| 9 | + | let phValue = match getString(kundenAdresse, "") { |
---|
| 10 | + | case a: String => |
---|
| 11 | + | a |
---|
| 12 | + | case _ => |
---|
| 13 | + | "" |
---|
| 14 | + | } |
---|
| 15 | + | if ((phValue == "halo")) |
---|
| 16 | + | then [ScriptTransfer(kundenAdresse, 1000000, i.feeAssetId)] |
---|
| 17 | + | else throw("nothing") |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | @Verifier(tx) |
---|
| 22 | + | func verify () = match tx { |
---|
| 23 | + | case _: DataTransaction => |
---|
| 24 | + | true |
---|
| 25 | + | case _: SetScriptTransaction => |
---|
| 26 | + | true |
---|
| 27 | + | case _ => |
---|
| 28 | + | true |
---|
| 29 | + | } |
---|
| 30 | + | |
---|