tx · 8sdPzJpHbQD6ZHJWM6dQWuUAPQYGoWZdihkE67EMXkoA
3N5EsnJ2joiZyWYgArRaXkCrgZFJLWXVhTR: -0.01000000 Waves
2020.02.07 16:33 [888872] smart account 3N5EsnJ2joiZyWYgArRaXkCrgZFJLWXVhTR > SELF 0.00000000 Waves
{
"type": 13,
"id": "8sdPzJpHbQD6ZHJWM6dQWuUAPQYGoWZdihkE67EMXkoA",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1581082411877,
"version": 1,
"sender": "3N5EsnJ2joiZyWYgArRaXkCrgZFJLWXVhTR",
"senderPublicKey": "E8N5q6mziaUEbYUGNPdQQP6B2pH4kUazrUGusqybbcTc",
"proofs": [
"ntjBuMaEJm55uiw7S32TjFHhjJDzugj4LomMCEE1CZrWk7qPsMjSt65dvtyUFue72qSFzexvtgcDE83jheicbhB"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAAAAAAEAAAABaQEAAAAIcmVnaXN0ZXIAAAABAAAABWxldmVsBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkAAGYAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAAAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAABWxldmVsAAAAAAAAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAdhZGRyZXNzBQAAAApjdXJyZW50S2V5BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAEdGhpcwgFAAAAA3BtdAAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAAB9UaGUgYW1vdW50IGxlc3MgdGhhbiBsZXZlbCBmZWUuAAAAAHgJffE=",
"chainId": 84,
"height": 888872,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: An44mThiQTFAaqzY5VoN4R3ptYMmZFw3xDirAwLNZSoB
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 register (level) = { |
---|
| 8 | + | let currentKey = toBase58String(i.caller.bytes) |
---|
| 9 | + | let pmt = extract(i.payment) |
---|
| 10 | + | if ((pmt.amount > 0)) |
---|
| 11 | + | then ScriptResult(WriteSet([DataEntry("level", 1), DataEntry("address", currentKey)]), TransferSet([ScriptTransfer(this, pmt.amount, unit)])) |
---|
| 12 | + | else throw("The amount less than level fee.") |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
| 15 | + | |
---|