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
2EKZp2w3hgYSKYLH2v2u8bVLzuI/TiaHF/MsMnnwjN8=
Received
17.10.2020 19:18:21
Confirmation delay (full node)
23 minutes 27 seconds
Confirmation delay (light node)
32 minutes 36 seconds
Authors
3Y24IXW57546PQAPQ2SXYEPEDNX4KC6Y
Children
wXHTxSCAI8SNbHW9uV/eEsloB2d0igqaD1oOvs0q9oE=
Parents
PUHA3IGwyMYbjJeEjcC0Mw6e7Rfh4ZAJUpng/zsuOuM=
Messages
Definition
Address:
3NGO5Z7WNJMP2Q2AJ7FR5P67JNYONCGD
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": "{ var["amount_" || $received_asset || "_" || $address] += trigger.output[[asset!=base]].amount; var["ts_" || $received_asset || "_" || $address] = timestamp; response['info'] = "This asset will be locked until " || timestamp_to_string(timestamp + $lock_period); }" } ] }, { "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_" || $asset || "_" || $address]; if (!$amount_available) bounce("You don't have deposit for this asset"); $locktime = var["ts_" || $asset || "_" || $address]; 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_" || $asset || "_" || $address] -= $amount; var["ts_" || $asset || "_" || $address] = false; }" } ] } ] } } ]
Witnesses
2TO6NYBGX3NF5QS24MQLFR7KXYAMCIE5
4GDZSXHEFVFMHCUCSHZVXBVF5T2LJHMU
APABTE2IBKOIHLS2UNK6SAR4T5WRGH2J
DXYWHSZ72ZDNDZ7WYZXKWBBH425C6WZN
FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF
FOPUBEUPBC6YLIQDLKL6EW775BMV7YOH
GFK3RDAPQLLNCMQEVGGD2KCPZTLSG3HN
I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT
JMFXY26FN76GWJJG7N36UI2LNONOGZJV
JPQKPRI5FMTQRJF4ZZMYZYDQVRD55OTC
TKT4UESIKTTRALRRLWS4SENSTJX6ODCW
UE25S4GRWZOLNXZKY4VWFHNJZWUSYCQC
Technical information
Fees:
3,045
bytes
(451 headers, 2594 payload)
Level:
6073798
Witnessed level:
6073785
Last ball unit:
6bv+k51swXLNI5CjOpmMueqZq0BDeDv1oy3dZREYjjQ=
Main chain index:
5928098
Latest included mc index:
5928097
Status:
stable/confirmed/final