tx · E9Cj31BTRhcV6xALvEDLjHHcPc9pMNDvZv1RyQUR5n2H
3MsJNyxFauVreQyp8HFbGb4bPykUapPC3nS: -0.01000000 Waves
2020.12.22 15:47 [1319933] smart account 3MsJNyxFauVreQyp8HFbGb4bPykUapPC3nS > SELF 0.00000000 Waves
{
"type": 13,
"id": "E9Cj31BTRhcV6xALvEDLjHHcPc9pMNDvZv1RyQUR5n2H",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1608641255579,
"version": 2,
"chainId": 84,
"sender": "3MsJNyxFauVreQyp8HFbGb4bPykUapPC3nS",
"senderPublicKey": "C7DrLz5rj8kQuMkzGe2BS2nUrRB4XDKWVtPmGX1CKnjN",
"proofs": [
"2TbdZCj2DRJAcHtRBknU3bBRuPLAzhBHGmuXWEKtJTE3DQVQvULxBYs3XP1gc2T8QFd8bPb9qfWUzwhWQgQbhWQx"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAGdW5sb2NrAAAAAQAAAAZhbW91bnQEAAAAB2JhbGFuY2UJAABlAAAAAgAAAAAAAAAAAAUAAAAGYW1vdW50AwkAAGYAAAACAAAAAAAAAAAABQAAAAdiYWxhbmNlCQAAAgAAAAECAAAADmludmFsaWQgYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAdiYWxhbmNlBQAAAAZhbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5/bFToA==",
"height": 1319933,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func unlock (amount) = { |
---|
| 8 | + | let balance = (0 - amount) |
---|
| 9 | + | if ((0 > balance)) |
---|
| 10 | + | then throw("invalid amount") |
---|
| 11 | + | else [IntegerEntry("balance", amount)] |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
| 14 | + | |
---|
| 15 | + | @Verifier(tx) |
---|
| 16 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 17 | + | |
---|