tx · FGL2GhNkUk4G6a7BPQDcTVHgCvitop5VcvBKVMLVsDTv
3N4xD2opiCNMULY8RHMM23QQfAh4TD94tJV: -0.01000000 Waves
2019.08.13 15:50 [629329] smart account 3N4xD2opiCNMULY8RHMM23QQfAh4TD94tJV > SELF 0.00000000 Waves
{
"type": 13,
"id": "FGL2GhNkUk4G6a7BPQDcTVHgCvitop5VcvBKVMLVsDTv",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1565700583845,
"version": 1,
"sender": "3N4xD2opiCNMULY8RHMM23QQfAh4TD94tJV",
"senderPublicKey": "49cDiyvyBwuvp9x61UuJES4VGzXq1XRikVXW4J3Xtx3b",
"proofs": [
"3geD3xEYiRfuJhXjXF7ovbPrbTGnNG9ujvGPRFmgRnuap8EPrCKAysuv84DJrSACbQdzHh4wof6zL9yJHaKBcew4"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdnZXREYXRhAAAAAQAAAAVrZXlPZgQAAAAERGF0YQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAAVrZXlPZgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAARkYXRhBQAAAAckbWF0Y2gwBQAAAARkYXRhCQAAAgAAAAECAAAADmtleSBub3QgdmFsaWQhCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAGcmVzdWx0BQAAAAREYXRhBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAREYXRhBQAAAAR1bml0BQAAAANuaWwAAAABaQEAAAAIc2VuZERhdGEAAAABAAAAAXgJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAABFRlc3QFAAAAAXgFAAAAA25pbAAAAAB12W+s",
"chainId": 84,
"height": 629329,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: BcwGTQ5o86oi6cruaL1dxZ4RRtjmbBiaSMR41f9dwCN5
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 getData (keyOf) = { |
---|
| 8 | + | let Data = match getInteger(this, keyOf) { |
---|
| 9 | + | case data: Int => |
---|
| 10 | + | data |
---|
| 11 | + | case _ => |
---|
| 12 | + | throw("key not valid!") |
---|
| 13 | + | } |
---|
| 14 | + | ScriptResult(WriteSet([DataEntry("result", Data)]), TransferSet([ScriptTransfer(i.caller, Data, unit)])) |
---|
| 15 | + | } |
---|
| 16 | + | |
---|
| 17 | + | |
---|
| 18 | + | |
---|
| 19 | + | @Callable(i) |
---|
| 20 | + | func sendData (x) = WriteSet([DataEntry("Test", x)]) |
---|
| 21 | + | |
---|
| 22 | + | |
---|