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
Fig6/UPnrN0Fy8ky0flvS/tBU9xTBrS9qmfgQph1mPA=
Received
08.04.2020 08:11:07
Confirmation delay (full node)
6 minutes 47 seconds
Confirmation delay (light node)
11 minutes 4 seconds
Authors
TTERXIO5HNT7T6XQQLCVI4MCP2ZVXLHE
Children
Bi3tmtCWr10NI2Cn3W6mW04dJPWRihk66PskpHYBbmw=
Parents
CO9EPd3XyyWdMHIc65I9Hia/EkUo98KDcfnnhXGnKQE=
Messages
Definition
Address:
ULMP7CQSYP32YLJIEGAD3HKQL7KCCO72
Definition:
[ "autonomous agent", { "doc_url": "https://oswap-frontend.herokuapp.com/factory.json", "init": "{ $base = 'GEUJAHDREHWT4JDBYRFT5AQDG3K7GIT6'; $assetA = trigger.data.assetA; $assetB = trigger.data.assetB; $address = trigger.data.address; }", "messages": { "cases": [ { "if": "{trigger.data.createPair AND $assetA AND $assetB AND trigger.output[[asset=base]] == 1e5}", "init": "{ if ($assetA == $assetB) bounce('identical asset'); if ( !asset[$assetA].exists OR asset[$assetA].is_private OR !asset[$assetA].is_transferrable OR asset[$assetA].fixed_denominations OR !asset[$assetB].exists OR asset[$assetB].is_private OR !asset[$assetB].is_transferrable OR asset[$assetB].fixed_denominations ) bounce('invalid asset'); $order = number_from_seed($assetA) > number_from_seed($assetB); $asset0 = $order ? $assetA : $assetB; $asset1 = $order ? $assetB : $assetA; if (var['all_pairs.' || $asset0 || '_' || $asset1]) bounce('pair exists'); }", "messages": [ { "app": "definition", "payload": { "definition": [ "autonomous agent", { "base_aa": "{$base}", "params": { "factory": "{this_address}", "asset0": "{$asset0}", "asset1": "{$asset1}" } } ] } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{this_address}", "amount": "{2e4}" } ] } }, { "app": "data", "payload": { "initializePair": "1", "assetA": "{$asset0}", "assetB": "{$asset1}" } }, { "app": "state", "state": "{ $address = unit[response_unit].messages[[.app='definition']].payload.address; var['all_pairs.' || $asset0 || '_' || $asset1] = $address; var['all_pairs.' || $asset1 || '_' || $asset0] = $address; var['get_pair.' || $address] = $asset0 || '_' || $asset1; var['pair_count'] += 1; }" } ] }, { "if": "{ $address = var['all_pairs.' || $assetA || '_' || $assetB]; trigger.data.initializePair AND $address AND trigger.output[[asset=base]] == 2e4 AND trigger.address == this_address }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$address}", "amount": "{1e4}" } ] } }, { "app": "data", "payload": { "initialize": "1" } } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
2,231
bytes
(353 headers, 1878 payload)
Level:
1298424
Witnessed level:
1298417
Last ball unit:
efNk1ElSODfCT2ORsWabS2EoeQSoa1XcRTQXgyO73dE=
Main chain index:
1293237
Latest included mc index:
1293236
Status:
stable/confirmed/final