tx · J9yH5YtrRos6HPviKfh7wzV46YzyHMmttkKT9TBtC4DV
3NAp5Z5UeahtgNqy7QiRW8So64HmKAvXCEi: -0.01000000 Waves
2021.01.27 16:28 [1371970] smart account 3NAp5Z5UeahtgNqy7QiRW8So64HmKAvXCEi > SELF 0.00000000 Waves
{
"type": 13,
"id": "J9yH5YtrRos6HPviKfh7wzV46YzyHMmttkKT9TBtC4DV",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1611754159694,
"version": 2,
"chainId": 84,
"sender": "3NAp5Z5UeahtgNqy7QiRW8So64HmKAvXCEi",
"senderPublicKey": "HUrf3vfEznidvKsg5Z4B1525Zd64X9cerHezUHAXThFv",
"proofs": [
"Gsjhsy4CoHBW4kbvakm4b6NsC5iK7ywEGeRtWecSsPT7eMxE3CSwTkLdADNhVHMikvH2PWgEvk7eXAkXfguc4Jq"
],
"script": "base64:AAIEAAAAAAAAAAIIAgAAAAEAAAAAC2RhcHBBZGRyZXNzAQAAABoBVOuaqBX09/yliAW63Etl0dFIHO5zRgLDQQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAARzaWduCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAAHaXNPd25lcgkAAAAAAAACCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwUAAAALZGFwcEFkZHJlc3MDBQAAAARzaWduBQAAAAdpc093bmVyB7v9XLM=",
"height": 1371970,
"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 | + | |
---|