tx · 5xyEsrsDpVPVBqat1pfRKdfueY3FYuts1GMX11C4gZsZ
3N6ELD3dYmNWGPDVJpjMoGt7ykBjoP4SfX9: -0.01000000 Waves
2021.01.29 16:38 [1374832] smart account 3N6ELD3dYmNWGPDVJpjMoGt7ykBjoP4SfX9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "5xyEsrsDpVPVBqat1pfRKdfueY3FYuts1GMX11C4gZsZ",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1611927484758,
"version": 2,
"chainId": 84,
"sender": "3N6ELD3dYmNWGPDVJpjMoGt7ykBjoP4SfX9",
"senderPublicKey": "4nFu3KwvsPXebudJMLZXnuqMU6j979QtxXesRkquNvtT",
"proofs": [
"pKUEe5Jf2B3PxojnAZhjBNB5W1RFk2XCWLB3vkrdP2ZagZb8HFuzk7wEbjKbvCQ88KKX9zEKAVMAWQN43XivBca"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALZGFwcEFkZHJlc3MBAAAAGgFU5xcyc5OTS/fF779GksV78jKpZj2P6kiwAAAAAQAAAAFpAQAAAAZhZGRLZXkAAAABAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAABHNpZ24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAdpc093bmVyCQAAAAAAAAIICAUAAAACdHgAAAAGc2VuZGVyAAAABWJ5dGVzBQAAAAtkYXBwQWRkcmVzcwMFAAAABHNpZ24FAAAAB2lzT3duZXIHFMPXBQ==",
"height": 1374832,
"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 | + | |
---|