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
uMHlUVNlf+cymcXIl47ZERcr7WHGgdL9JJCxYDNx2/k=
Received
11.09.2019 13:20:35
Confirmation delay (full node)
1 minute 55 seconds
Confirmation delay (light node)
3 minutes 43 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
jCy3n+1tXKH5Eb9NuWE1lp4AENBiFi7TLh/vYCwUDiQ=
Parents
rf14n3n2NRjRbhEwXP300sDR9rUR4mVlmZ/MiZxXPu0=
Messages
Definition
Address:
ESEP3ZMJMMIQ76L3XEOGYI2ZXT2OVYRB
Definition:
[ "autonomous agent", { "init": "{ $id = trigger.data.id; }", "messages": { "cases": [ { "if": "{trigger.data.register AND $id}", "init": "{ if (var['owner_' || $id]) bounce('thing ' || $id || ' already registered'); if (trigger.data.sell){ $price = trigger.data.price; if (!$price || !($price > 0) || round($price) != $price) bounce('please set a positive integer price'); } }", "messages": [ { "app": "state", "state": "{ var['owner_' || $id] = trigger.address; if (trigger.data.sell AND trigger.data.price) var['price_' || $id] = trigger.data.price; response['message'] = 'registered' || (trigger.data.sell AND trigger.data.price ? ' and put on sale for ' || trigger.data.price : ''); }" } ] }, { "if": "{$id AND trigger.data.sell AND trigger.data.price}", "init": "{ $owner = var['owner_' || $id]; if (!$owner OR $owner != trigger.address) bounce('thing ' || $id || ' is not yours'); if (!(trigger.data.price > 0) OR round(trigger.data.price) != trigger.data.price) bounce('please set an integer positive price'); }", "messages": [ { "app": "state", "state": "{ var['price_' || $id] = trigger.data.price; response['message'] = 'on sale for ' || trigger.data.price; }" } ] }, { "if": "{$id AND trigger.data.withdraw_from_sale}", "init": "{ $owner = var['owner_' || $id]; if (!$owner OR $owner != trigger.address) bounce('thing ' || $id || ' is not yours'); }", "messages": [ { "app": "state", "state": "{ var['price_' || $id] = false; // no-price means not on sale response['message'] = 'withdrawn from sale'; }" } ] }, { "if": "{$id AND trigger.data.buy}", "init": "{ $owner = var['owner_' || $id]; if (!$owner) bounce('no such thing: ' || $id); if ($owner == trigger.address) bounce('thing ' || $id || ' is already yours'); $price = var['price_' || $id]; if (!$price) bounce('thing ' || $id || ' is not on sale'); $amount = trigger.output[[asset=base]]; if ($amount < $price) bounce("the thing's price is " || $price || ", you sent only " || $amount); $change = $amount - $price; }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$owner}", "amount": "{$price}" }, { "if": "{$change > 0}", "address": "{trigger.address}", "amount": "{$change}" } ] } }, { "app": "state", "state": "{ var['owner_' || $id] = trigger.address; // new owner var['price_' || $id] = false; // not on sale any more response['message'] = 'sold to ' || trigger.address; }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
2,814
bytes
(353 headers, 2461 payload)
Level:
1055342
Witnessed level:
1055334
Last ball unit:
d06RfaTY0K6n5GZt/vrTc3ka38u0Sr+XDefjqtPhZJo=
Main chain index:
1054115
Latest included mc index:
1054114
Status:
stable/confirmed/final