tx · H8VEx6WipwvddZjNHcUBddw5qaiKqUTxCwrCngM5y22k
3MuoarJLTPoBKJhuWBGBooh6h6L8PtDvnb3: -0.01000000 Waves
2025.01.22 19:02 [3470547] smart account 3MuoarJLTPoBKJhuWBGBooh6h6L8PtDvnb3 > SELF 0.00000000 Waves
{
"type": 13,
"id": "H8VEx6WipwvddZjNHcUBddw5qaiKqUTxCwrCngM5y22k",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1737561806056,
"version": 2,
"chainId": 84,
"sender": "3MuoarJLTPoBKJhuWBGBooh6h6L8PtDvnb3",
"senderPublicKey": "5Fn7QndBA6bQmjJfLpzSFn6YidBUFzZ4p9XAo2EP9w7k",
"proofs": [
"4Hj6wyzcqDYo7c5SyWZmPYCBWQ3NUSLAqxfhrzbPviqFndTF9cBrUZftiYDKQvn4ui1JyT2hd3pC1qpKaDuAFDcj"
],
"script": "base64:CAIECAISAAABAWkBC21ha2VQYXltZW50AAQGY2FsbGVyCAUBaQZjYWxsZXIEB3BheW1lbnQIBQFpCHBheW1lbnRzAwkAAAIJAJADAQUHcGF5bWVudAABBAZhbW91bnQICQCRAwIFB3BheW1lbnQAAAZhbW91bnQEB2Fzc2V0SWQICQCRAwIFB3BheW1lbnQAAAdhc3NldElkCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgICCHBheW1lbnRfCQDYBAEIBQZjYWxsZXIFYnl0ZXMFBmFtb3VudAkAzAgCCQELU3RyaW5nRW50cnkCAgpsYXN0X3BheWVyCQDYBAEIBQZjYWxsZXIFYnl0ZXMFA25pbAkAAgECKkludmFsaWQgcGF5bWVudCwgb25seSBvbmUgYXNzZXQgaXMgYWxsb3dlZAB0Uh/H",
"height": 3470547,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 8 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func makePayment () = { |
---|
| 8 | + | let caller = i.caller |
---|
| 9 | + | let payment = i.payments |
---|
| 10 | + | if ((size(payment) == 1)) |
---|
| 11 | + | then { |
---|
| 12 | + | let amount = payment[0].amount |
---|
| 13 | + | let assetId = payment[0].assetId |
---|
| 14 | + | [IntegerEntry(("payment_" + toBase58String(caller.bytes)), amount), StringEntry("last_payer", toBase58String(caller.bytes))] |
---|
| 15 | + | } |
---|
| 16 | + | else throw("Invalid payment, only one asset is allowed") |
---|
| 17 | + | } |
---|
| 18 | + | |
---|
| 19 | + | |
---|