tx · F9FCmSY6HT7WY9HP182yPKRohmVh9gcNU5TnJPQrxb2P
3N1wTdCqaH5UiKLtuuCni5LhPv5Rk45KhMQ: -0.01000000 Waves
2021.01.29 16:22 [1374818] smart account 3N1wTdCqaH5UiKLtuuCni5LhPv5Rk45KhMQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "F9FCmSY6HT7WY9HP182yPKRohmVh9gcNU5TnJPQrxb2P",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1611926577418,
"version": 2,
"chainId": 84,
"sender": "3N1wTdCqaH5UiKLtuuCni5LhPv5Rk45KhMQ",
"senderPublicKey": "6455hKsM5q4jAjdkRhpwB79fUAtfw1jCmqyX1AEq7JLi",
"proofs": [
"2GTLNKn4CgxGJhox3cRtxefiiJ21i4zPQECRQXtMw4vd3UZSab5TLaqhctSjtJ9EiVBo5EjAqmVzzjH6QAVHxyDY"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALZGFwcEFkZHJlc3MBAAAAGgFU5xcyc5OTS/fF779GksV78jKpZj2P6kiwAAAAAQAAAAFpAQAAAAZhZGRLZXkAAAABAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAABHNpZ24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAdpc093bmVyCQAAAAAAAAIICAUAAAACdHgAAAAGc2VuZGVyAAAABWJ5dGVzBQAAAAtkYXBwQWRkcmVzcwMFAAAABHNpZ24FAAAAB2lzT3duZXIHFMPXBQ==",
"height": 1374818,
"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'3NAyyezdeXvgEwe1qVe3HXpUZBkEgwMEgud' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func addKey (assetId) = nil |
---|
| 8 | + | |
---|
| 9 | + | |
---|
| 10 | + | @Verifier(tx) |
---|
| 11 | + | func verify () = { |
---|
| 12 | + | let sign = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 13 | + | let isOwner = (tx.sender.bytes == dappAddress) |
---|
| 14 | + | if (sign) |
---|
| 15 | + | then isOwner |
---|
| 16 | + | else false |
---|
| 17 | + | } |
---|
| 18 | + | |
---|