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
ubumE0Rime38B+Dn0APff/7tykPZzWyTdjgTSPbdj78=
Received
25.08.2019 09:12:21
Confirmation delay (full node)
4 minutes 6 seconds
Confirmation delay (light node)
8 minutes 22 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
cB0jnFbav0Q9rfF4hy8wy43fTfrji7zIUPkNSxYjm5c=
Parents
C02YTt0dxX91Eiw0fVzJnM15WZK4cfOMhQQGpmhEyME=
Messages
Definition
Address:
ZB4UMPF3KZCFDWAI2BHBJ6JVMW2P3IVA
Definition:
[ "autonomous agent", { "init": "{ $owner = "MYESSCFGDERS3YIEGNZDOG2BI5HKQHLU"; }", "messages": { "cases": [ { "if": "{ trigger.data.create }", "init": "{ $name = trigger.data.create; $other_party = trigger.data.other_party otherwise bounce ("need 'other_party' address!"); }", "messages": [ { "app": "state", "state": "{ var[$name||"_party1"] = trigger.address; var[$name||"_party2"] = $other_party; var[$name||"_balance"] = trigger.output[[asset=base]]; if (var["blocked_balance"]) var["blocked_balance"] += trigger.output[[asset=base]]; else var["blocked_balance"] = trigger.output[[asset=base]]; response['message'] = "Done! Later, the parties will have to agree on how to spread the balance ("||trigger.output[[asset=base]]||") by sending the 'amount' they allow the other party to receive, if the sum of the 2 amounts is equal to the balance then the payment will be executed."; }" } ] }, { "if": "{ trigger.data.name }", "init": "{ $name = trigger.data.name; $balance = var[$name||"_balance"] otherwise bounce ("Guarantee name do not exist!"); $amount = trigger.data.amount otherwise bounce ("Need the 'amount' you allow the other party to receive!"); if ($amount > $balance) bounce ("The amount is bigger than the full balance!"); if (var[$name||"_party1"] == trigger.address) { $proposition1 = $amount; $proposition2 = var[$name||"_proposition2"] otherwise $balance; } if (var[$name||"_party2"] == trigger.address) { $proposition1 = var[$name||"_proposition1"] otherwise $balance; $proposition2 = $amount; } if (!($proposition1)) bounce ("You are not part of the agreement!"); $agreement_found = ($amount + $deblocked_by_other) == $balance; }", "messages": [ { "if": "{ $agreement_found }", "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{var[$name||"_party1"]}", "amount": "{ $proposition2 - 500 }" }, { "address": "{var[$name||"_party2"]}", "amount": "{ $proposition1 - 500 }" }, { "address": "{trigger.address}", "amount": "{ trigger.output[[asset=base]]-2000 }" } ] } }, { "app": "state", "state": "{ if ($agreement_found) { // clear the full state var[$name||"_party1"] = false; var[$name||"_party2"] = false; var[$name||"_balance"] = false; var[$name||"_proposition1"] = false; var[$name||"_proposition2"] = false; var["blocked_balance"] -= ($proposition1 + $proposition2 - 1000); } else { // safe the proposition if (var[$name||"_party1"] == trigger.address) var[$name||"_proposition1"] = $amount; else var[$name||"_proposition2"] = $amount; } }" } ] }, { "init": "{ if (trigger.address != $owner) bounce ("you need to read the doc!"); }", "messages": [ { "if": "{ $agreement_found }", "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$owner}", "amount": "{ balance[base] - var["blocked_balance"] - 600 }" } ] } } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
3,291
bytes
(353 headers, 2938 payload)
Level:
1024742
Witnessed level:
1024735
Last ball unit:
m7A6V1cfAE2b5U84YhkbpBePQ6SPT8B752bUHCqK3z8=
Main chain index:
1023555
Latest included mc index:
1023554
Status:
stable/confirmed/final