tx · 2evfA165zgCN24yghA3bZErGiWeWbSTFj8ymrRx6pYQA
3MwoxRYgV9EeanBtS75oXJQGrcQ75A77oJU: -0.01000000 Waves
2021.04.05 19:55 [1469419] smart account 3MwoxRYgV9EeanBtS75oXJQGrcQ75A77oJU > SELF 0.00000000 Waves
{
"type": 13,
"id": "2evfA165zgCN24yghA3bZErGiWeWbSTFj8ymrRx6pYQA",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1617641726383,
"version": 2,
"chainId": 84,
"sender": "3MwoxRYgV9EeanBtS75oXJQGrcQ75A77oJU",
"senderPublicKey": "A5GX3vTwaEg4v8Y2tsPeeQjKnUXpeaEBB9Zq5crF2CUv",
"proofs": [
"5Toojgmi7M8Kv9P2ZqnU3xKDjZwWR76j1ABLMhPwVueXe5KUA2Uhs5gtqMxaLj5HKmB6wZD2DTQik2SiJLa2RD8H"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAKdGVzdGhlaWdodAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAZhc3NldDEBAAAAIE+Mh7J1xMTUIm/DwOA0Gk7TKX2bLvjnTyeMoAXgSIzPAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAZhc3NldDEJAAACAAAAAQIAAABZSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCA2TVhWZFpVeVpTUXA3WjE2ckR3VUtZV3V1UDl6UEwzeURHRDRoUk5hZGN6aSAoS1NTKS4JAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAA5DdXJyZW50IEhlaWdodAUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAA5DdXJyZW50IEhlaWdodAgFAAAACWxhc3RCbG9jawAAAAZoZWlnaHQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlHEbll",
"height": 1469419,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: ExpbUqmDX8uEsFntFkupu5TbB3rin2MtLK8hBak4KNjZ
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func testheight () = { |
---|
| 8 | + | let pmt = extract(i.payment) |
---|
| 9 | + | let asset1 = base58'6MXVdZUyZSQp7Z16rDwUKYWuuP9zPL3yDGD4hRNadczi' |
---|
| 10 | + | if ((pmt.assetId != asset1)) |
---|
| 11 | + | then throw("Incorrect asset attached, please send 6MXVdZUyZSQp7Z16rDwUKYWuuP9zPL3yDGD4hRNadczi (KSS).") |
---|
| 12 | + | else ScriptResult(WriteSet([DataEntry("Current Height", height), DataEntry("Current Height", lastBlock.height)]), TransferSet(nil)) |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
| 15 | + | |
---|
| 16 | + | @Verifier(tx) |
---|
| 17 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 18 | + | |
---|