Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
PjQPp9LjwDreOGFcZuFzI8BsV+QDC2rPMYb/QF3Pmjo=
Received
20.10.2020 10:39:09
Confirmation delay (full node)
3 minutes 42 seconds
Confirmation delay (light node)
7 minutes 4 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
FYWqxxkYfo9o8DdfWB9r9AHtMpNqTY1c+WIUZTtAtyo=
Parents
FJIMgpeweXQCSQzBNTXBLQGyLCn7yh60wZZTuYXRT5E=
Messages
Definition
Address:
7AUBFK4YAUGUF3RWWYRFXXF7BBWY2V7Y
Definition:
[ "autonomous agent", { "doc_url": "https://liquidity.obyte.org/liquidity-providers-distribution.json", "init": "{ $lock_period = 7 * 24 * 3600; $registry_aa = "O6H6ZIFI57X3PLTYHOCVYPP5A553CYFQ"; $address = trigger.address; if (is_aa($address)) bounce("Asset must be sent from a plain wallet, not an AA"); if (trigger.output[[asset=base]].amount > 10000) bounce("Bytes amount should be only 10000"); }", "messages": { "cases": [ { "if": "{trigger.output[[asset!=base]].amount > 0}", "init": "{ $received_asset = trigger.output[[asset!=base]].asset; if ($received_asset == "ambiguous") bounce("Different assets cannot be handled at same time"); }", "messages": [ { "app": "state", "state": "{ if (var["amount_" || $address || "_" || $received_asset]) response['info'] = "All deposits for this asset will be locked until " || timestamp_to_string(timestamp + $lock_period); else response['info'] = "This asset will be locked until " || timestamp_to_string(timestamp + $lock_period); var["amount_" || $address || "_" || $received_asset] += trigger.output[[asset!=base]].amount; var["ts_" || $address || "_" || $received_asset] = timestamp; }" } ] }, { "if": "{trigger.data.withdraw}", "init": "{ if (asset[trigger.data.withdraw].exists) $asset = trigger.data.withdraw; else { $asset = var[$registry_aa]["s2a_" || trigger.data.withdraw]; if (!$asset) bounce("unknown symbol"); } $amount_available = var["amount_" || $address || "_" || $asset]; if (!$amount_available) bounce("You don't have deposit for this asset"); $locktime = var["ts_" || $address || "_" || $asset]; if ($locktime AND timestamp < $locktime + $lock_period) bounce("This asset is still locked, retry in " || round(($locktime + $lock_period - timestamp) / 3600) || " hours"); if (trigger.data.amount){ if (!is_valid_amount(trigger.data.amount)) bounce("Invalid amount"); if(trigger.data.amount > $amount_available) bounce("Only " || $amount_available || " available for withdraw"); $amount = trigger.data.amount; } else { $amount = $amount_available; } }", "messages": [ { "app": "payment", "payload": { "asset": "{$asset}", "outputs": [ { "address": "{$address}", "amount": "{ $amount }" } ] } }, { "app": "state", "state": "{ var["amount_" || $address || "_" || $asset] -= $amount; var["ts_" || $address || "_" || $asset] = false; }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
3,256
bytes
(452 headers, 2804 payload)
Level:
1692392
Witnessed level:
1692385
Last ball unit:
BPhZWlcE3/9F3p4u/jzA0sDbep/NS1+f1BpIMU3K4bI=
Main chain index:
1684915
Latest included mc index:
1684914
Status:
stable/confirmed/final