tx · FkqzZXoWqjkadCkwNJd7NWeZ6sSnYz4E32XCHPRVeWmz
3N5zHjgSHiANCFnZHkgaRsRyo3KXtaqpGb2: -0.01000000 Waves
2021.03.31 15:53 [1461963] smart account 3N5zHjgSHiANCFnZHkgaRsRyo3KXtaqpGb2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "FkqzZXoWqjkadCkwNJd7NWeZ6sSnYz4E32XCHPRVeWmz",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1617195221163,
"version": 2,
"chainId": 84,
"sender": "3N5zHjgSHiANCFnZHkgaRsRyo3KXtaqpGb2",
"senderPublicKey": "Cij8H93u1S82tHg5zbWh7brkSNKxPyjkXhVSMktMKXVX",
"proofs": [
"N8ExkbPSoN8vqWNQZGHrmZwPWmFxzoVaM93vLBWaCQoZ7ZDykkyQjtSBUuV9FY3Jkkzjw9WC5hfKRzjyauqMf2H"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAGZ2l2ZU1lAAAAAQAAAAZhbW91bnQEAAAABWxpbWl0CQAD7wAAAAEFAAAABHRoaXMDCQAAZgAAAAIFAAAABmFtb3VudAgFAAAABWxpbWl0AAAACWF2YWlsYWJsZQkAAAIAAAABAgAAABpBY2NvdW50IGJhbGFuY2UgaXMgdG9vIGxvdwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnwPz2w",
"height": 1461963,
"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 giveMe (amount) = { |
---|
| 8 | + | let limit = wavesBalance(this) |
---|
| 9 | + | if ((amount > limit.available)) |
---|
| 10 | + | then throw("Account balance is too low") |
---|
| 11 | + | else [ScriptTransfer(i.caller, amount, unit)] |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
| 14 | + | |
---|
| 15 | + | @Verifier(tx) |
---|
| 16 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 17 | + | |
---|