tx · 9KUJVi34faVgWtBMS9NFSnXqZffRPVWCxzXcDzLz2nvB
3MyL8PcebVFABremMB97pV3FhztcG3ZmH5u: -0.01000000 Waves
2019.07.24 15:25 [600105] smart account 3MyL8PcebVFABremMB97pV3FhztcG3ZmH5u > SELF 0.00000000 Waves
{
"type": 13,
"id": "9KUJVi34faVgWtBMS9NFSnXqZffRPVWCxzXcDzLz2nvB",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1563971166882,
"version": 1,
"sender": "3MyL8PcebVFABremMB97pV3FhztcG3ZmH5u",
"senderPublicKey": "BCNPdVGTWU3kkpGe1CkywhPU1fD8n8PXTQLqWzHr4JND",
"proofs": [
"3t2Ycu4s8g4srK6DNCG9JGGWjA2m6ZrK3VdnXHPb1dwcLT8ErvAMZj7gh2sQEG7krrz2Kt8M8aj5UAjLkGnFM4Ar"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAAZ0ZWxsbWUAAAADAAAABGhvc3QAAAAJcHVibGljS2V5AAAABnN0YXR1cwQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAxoYXNQdWJsaWNLZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAJcHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAF4BQAAAAckbWF0Y2gwAgAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABeAUAAAAHJG1hdGNoMAUAAAABeAkBAAAABXRocm93AAAAAAMJAQAAAAIhPQAAAAIFAAAADGhhc1B1YmxpY0tleQIAAAAACQAAAgAAAAECAAAAGFRoaXMgcHVibGljS2V5IGlzIGV4aXN0cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAEaG9zdAUAAAAEaG9zdAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAJcHVibGljS2V5BQAAAAlwdWJsaWNLZXkJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAABnN0YXR1cwUAAAAGc3RhdHVzBQAAAANuaWwAAAAAPVQ+YQ==",
"chainId": 84,
"height": 600105,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
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 tellme (host,publicKey,status) = { |
---|
| 8 | + | let callerAddress = toBase58String(i.caller.bytes) |
---|
| 9 | + | let hasPublicKey = match getString(this, publicKey) { |
---|
| 10 | + | case x: Unit => |
---|
| 11 | + | "" |
---|
| 12 | + | case x: String => |
---|
| 13 | + | x |
---|
| 14 | + | case _ => |
---|
| 15 | + | throw() |
---|
| 16 | + | } |
---|
| 17 | + | if ((hasPublicKey != "")) |
---|
| 18 | + | then throw("This publicKey is exists") |
---|
| 19 | + | else WriteSet([DataEntry("host", host), DataEntry("publicKey", publicKey), DataEntry("status", status)]) |
---|
| 20 | + | } |
---|
| 21 | + | |
---|
| 22 | + | |
---|