tx · 7GrWFEnC7eWAr1Swg85gckeHi815KQinoKTJGGrEqzj6
3N1cBYAkNKVTLMxP8NA44gznSMbJH54GUVh: -0.01000000 Waves
2021.01.28 12:25 [1373153] smart account 3N1cBYAkNKVTLMxP8NA44gznSMbJH54GUVh > SELF 0.00000000 Waves
{
"type": 13,
"id": "7GrWFEnC7eWAr1Swg85gckeHi815KQinoKTJGGrEqzj6",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1611825943093,
"version": 2,
"chainId": 84,
"sender": "3N1cBYAkNKVTLMxP8NA44gznSMbJH54GUVh",
"senderPublicKey": "EE17437nYEqUFxqQgUFNYGVdks2Sh4iD3JjDtyRSg5tW",
"proofs": [
"4F9jqW5F5npVaxsmtMdspsQtvmZo5AFAnfQa5XJBdamrD2qVajf6XbuEkueWwFTLZftLe9aQBWnmGp15XLumk3a8"
],
"script": "base64:AAIEAAAAAAAAAAIIAgAAAAEAAAAAC2RhcHBBZGRyZXNzAQAAABoBVOuaqBX09/yliAW63Etl0dFIHO5zRgLDQQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAARzaWduCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAAHaXNPd25lcgkAAAAAAAACCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwUAAAALZGFwcEFkZHJlc3MDBQAAAARzaWduBQAAAAdpc093bmVyB7v9XLM=",
"height": 1373153,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let dappAddress = base58'3NBPqqjDH2eYmoHeXNPnHhLvA7D4UDQXQcx' |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | @Verifier(tx) |
---|
| 8 | + | func verify () = { |
---|
| 9 | + | let sign = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 10 | + | let isOwner = (tx.sender.bytes == dappAddress) |
---|
| 11 | + | if (sign) |
---|
| 12 | + | then isOwner |
---|
| 13 | + | else false |
---|
| 14 | + | } |
---|
| 15 | + | |
---|