tx · 4Nr4quFBJr36rC87S5ncAx2m9d7iXNReXQMfdRspiqxb

3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ:  -0.01000000 Waves

2021.09.10 21:41 [1697322] smart account 3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ > SELF 0.00000000 Waves

{ "type": 13, "id": "4Nr4quFBJr36rC87S5ncAx2m9d7iXNReXQMfdRspiqxb", "fee": 1000000, "feeAssetId": null, "timestamp": 1631299299657, "version": 2, "chainId": 84, "sender": "3MsWjZnJQ153rbLHvn6hqKELqn35R472VpQ", "senderPublicKey": "CdNy1QDsxM9o785GEAVwFCkE3kkrhgdcZ8VFAm6Nu8nx", "proofs": [ "hwChYVqv2w2wu7w2eMn8V87nJrkkPTMdqNWUwDerfSDLEMfUNtWSY5iRvGcTuuuqU8NWgzZrVWzrf21cU4RW24K" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgEAAAAYcHJpdmF0ZUdldEFjY291bnRCYWxhbmNlAAAAAQAAAAdhc3NldElkAwkAAAAAAAACBQAAAAdhc3NldElkAgAAAAVXQVZFUwgJAAPvAAAAAQUAAAAEdGhpcwAAAAlhdmFpbGFibGUJAAPwAAAAAgUAAAAEdGhpcwkAAlkAAAABBQAAAAdhc3NldElkAQAAAAtnZXRCYWxhbmNlcwAAAAAEAAAACnd2c0JhbGFuY2UJAQAAABhwcml2YXRlR2V0QWNjb3VudEJhbGFuY2UAAAABAgAAAAVXQVZFUwQAAAAKdGtuQmFsYW5jZQkBAAAAGHByaXZhdGVHZXRBY2NvdW50QmFsYW5jZQAAAAECAAAALDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4ZkNDaG5yVkZENUFUCQAETAAAAAIFAAAACnd2c0JhbGFuY2UJAARMAAAAAgUAAAAKdGtuQmFsYW5jZQUAAAADbmlsAAAAAQAAAAFpAQAAAARjYWxsAAAAAAQAAAABYgkBAAAAC2dldEJhbGFuY2VzAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFd2F2ZXMJAAGRAAAAAgUAAAABYgAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAEdXNkbgkAAZEAAAACBQAAAAFiAAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleT/thxQ=", "height": 1697322, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: Bp1X984TttFFfuDZiM1Xa7y1M9168t2smRZDasQDhUJT Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func privateGetAccountBalance (assetId) = if ((assetId == "WAVES"))
5+ then wavesBalance(this).available
6+ else assetBalance(this, fromBase58String(assetId))
7+
8+
9+func getBalances () = {
10+ let wvsBalance = privateGetAccountBalance("WAVES")
11+ let tknBalance = privateGetAccountBalance("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT")
12+[wvsBalance, tknBalance]
13+ }
14+
15+
16+@Callable(i)
17+func call () = {
18+ let b = getBalances()
19+[IntegerEntry("waves", b[0]), IntegerEntry("usdn", b[1])]
20+ }
21+
22+
23+@Verifier(tx)
24+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
25+

github/deemru/w8io/026f985 
25.32 ms