tx · NxkaGtX3WgBkTWW8pBkgUq3JZLYSeozmYdo2kadUDMN

3NC9kr6PrEaK3LzDskfRYYPptD661tGqYCT:  -0.01000000 Waves

2023.06.26 19:49 [2639880] smart account 3NC9kr6PrEaK3LzDskfRYYPptD661tGqYCT > SELF 0.00000000 Waves

{ "type": 13, "id": "NxkaGtX3WgBkTWW8pBkgUq3JZLYSeozmYdo2kadUDMN", "fee": 1000000, "feeAssetId": null, "timestamp": 1687798167048, "version": 2, "chainId": 84, "sender": "3NC9kr6PrEaK3LzDskfRYYPptD661tGqYCT", "senderPublicKey": "GbuSDMJ9f8tA4zAhWyBcyJQrcbh5crghVxQWWeGL8KPx", "proofs": [ "sMMSEgMRB8Jmr1ag1G83q2bVJCajw9w4pV1Lfs8p7XUU6sUrMH6yxi1gABw14GTKPfwcUeQ6F3vhAMvaRWcLA3A" ], "script": "base64:BgIECAISAAIAB2Fzc2V0SWQBIJPhcjhxBJtq6JpjHwQkt2RTlyw+vGYLg3SvaLskjeJCAQ9nZXRJbnRlZ2VyQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQNrZXkAAAEBaQEFY2xhaW0ABAZjYWxsZXIJAKUIAQgFAWkGY2FsbGVyBA51c2VyX2Nhbl9jbGFpbQkBD2dldEludGVnZXJCeUtleQEFBmNhbGxlcgMJAGYCBQZoZWlnaHQJAGQCBQ51c2VyX2Nhbl9jbGFpbQCgCwkAzAgCCQEMSW50ZWdlckVudHJ5AgUGY2FsbGVyBQZoZWlnaHQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAIDC1y8FB2Fzc2V0SWQFA25pbAkAAgECHE9ubHkgMSBjbGFpbSBwZXIgMTQ0MCBibG9ja3MBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5hiXB6g==", "height": 2639880, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let assetId = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1'
5+
6+func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
7+
8+
9+@Callable(i)
10+func claim () = {
11+ let caller = toString(i.caller)
12+ let user_can_claim = getIntegerByKey(caller)
13+ if ((height > (user_can_claim + 1440)))
14+ then [IntegerEntry(caller, height), ScriptTransfer(i.caller, 100000000, assetId)]
15+ else throw("Only 1 claim per 1440 blocks")
16+ }
17+
18+
19+@Verifier(tx)
20+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
21+

github/deemru/w8io/026f985 
16.47 ms