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
CZ9wQzBUzcYfcGiXgZjH5FjoO7Te9kjFH1FXC9usW8I=
Received
24.05.2024 16:56:09
Confirmation delay (full node)
22 minutes 27 seconds
Confirmation delay (light node)
29 minutes 23 seconds
Authors
265APJC3CKSPD5PB7YTCQYXE6JDODTK2
Children
k4yky8nmndQYMqw9Rj2V+UnnuhM2qxCqKUDbek7icDA=
Parents
lbzrSXdWT2Bp8ZiMaz9TE4IjSH1AjAbk70ZEBV3EdEc=
Messages
Definition
Address:
DI4PILJ3KMONCARDWKLVWMATUK2LXVW5
Definition:
[ "autonomous agent", { "init": "{ $id = trigger.data.CH.id.ch; }", "messages": { "cases": [ { "if": "{trigger.data.register AND $id}", "init": "{ if (var['owner_' || $id]) bounce('La valeur ' || $id || ' est déjà enregistrée'); if (trigger.data.sell){ $price = trigger.data.price; if (!$price || !($price > 0) || round($price) != $price) bounce('Veuillez définir un prix entier positif'); } }", "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'] = 'Enregistrée' || (trigger.data.sell AND trigger.data.price ? ' et mise en vente à ' || 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('La chose ' || $id || ' ne vous appartient pas'); if (!(trigger.data.price > 0) OR round(trigger.data.price) != trigger.data.price) bounce('Veuillez définir un prix entier positif'); }", "messages": [ { "app": "state", "state": "{ var['price_' || $id] = trigger.data.price; response['message'] = 'Mise en vente à ' || trigger.data.price; }" } ] }, { "if": "{$id AND trigger.data.withdraw_from_sale}", "init": "{ $owner = var['owner_' || $id]; if (!$owner OR $owner != trigger.address) bounce('La chose ' || $id || ' ne vous appartient pas'); }", "messages": [ { "app": "state", "state": "{ var['price_' || $id] = false; // Pas de prix signifie pas en vente response['message'] = 'Retirée de la vente'; }" } ] }, { "if": "{$id AND trigger.data.buy}", "init": "{ $owner = var['owner_' || $id]; if (!$owner) bounce('La chose ' || $id || ' n\'existe pas'); if ($owner == trigger.address) bounce('La chose ' || $id || ' est déjà la vôtre'); $price = var['price_' || $id]; if (!$price) bounce('La chose ' || $id || ' n\'est pas en vente'); $amount = trigger.output[[asset=base]]; if ($amount < $price) bounce("Le prix de la chose est de " || $price || ", vous avez envoyé seulement " || $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; // Nouveau propriétaire var['price_' || $id] = false; // Plus en vente response['message'] = 'Vendue à ' || trigger.address; }" } ] } ] } } ]
Witnesses
2TO6NYBGX3NF5QS24MQLFR7KXYAMCIE5
4GDZSXHEFVFMHCUCSHZVXBVF5T2LJHMU
APABTE2IBKOIHLS2UNK6SAR4T5WRGH2J
DXYWHSZ72ZDNDZ7WYZXKWBBH425C6WZN
FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF
FOPUBEUPBC6YLIQDLKL6EW775BMV7YOH
GFK3RDAPQLLNCMQEVGGD2KCPZTLSG3HN
I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT
JMFXY26FN76GWJJG7N36UI2LNONOGZJV
JPQKPRI5FMTQRJF4ZZMYZYDQVRD55OTC
TKT4UESIKTTRALRRLWS4SENSTJX6ODCW
UE25S4GRWZOLNXZKY4VWFHNJZWUSYCQC
Technical information
Fees:
3,422
bytes
(544 headers, 2878 payload)
Level:
11003858
Witnessed level:
11003849
Last ball unit:
j7rKpzBrm7jcUHPDfdFZ9tAGFfA/2MkPehf6uoqhgR0=
Main chain index:
10623697
Latest included mc index:
10623692
Status:
stable/confirmed/final