Unit ID
RXekfPJi8XT7IkcLIQ7pzvh7+17nriT5u0EurPzjrGU=
Received
01.08.2019 18:58:24
Confirmation delay (full node)
11 minutes 58 seconds
Confirmation delay (light node)
13 minutes 3 seconds
Messages
Definition
Definition: [ "autonomous agent", { "bounce_fees": { "base": 20000 }, "init": "{ $my_address = '2QHG44PZLJWD2H7C5ZIWH4NZZVB6QCC7'; }", "messages": { "cases": [ { "if": "{trigger.data.define}", "messages": [ { "app": "asset", "payload": { "cap": "{trigger.data.cap otherwise ''}", "is_private": false, "is_transferrable": true, "auto_destroy": "{!!trigger.data.auto_destroy}", "fixed_denominations": false, "issued_by_definer_only": "{!!trigger.data.issued_by_definer_only}", "cosigned_by_definer": false, "spender_attested": "{!!trigger.data.attestor1}", "attestors": [ "{trigger.data.attestor1 otherwise ''}", "{trigger.data.attestor2 otherwise ''}", "{trigger.data.attestor3 otherwise ''}" ] } }, { "app": "state", "state": "{ var[response_unit] = trigger.address; }" } ] }, { "if": "{trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND var[trigger.data.asset] == trigger.address}", "messages": [ { "app": "payment", "payload": { "asset": "{trigger.data.asset}", "outputs": [ { "address": "{trigger.address}", "amount": "{trigger.data.amount}" } ] } } ] }, { "if": "{trigger.data.exchange_rate AND trigger.data.asset AND var[trigger.data.asset] == trigger.address}", "messages": [ { "app": "state", "state": "{ var[trigger.data.asset || ':&!!rate'] = trigger.data.exchange_rate; response['message'] = 'set exchange rate to '||var[trigger.data.asset || ':&!!rate']||' tokens/byte'; }" } ] }, { "if": "{trigger.output[[asset=base]] > 50000 AND trigger.data.asset }", "init": "{ $bytes_amount = trigger.output[[asset=base]]; $asset_amount = round($bytes_amount * var[trigger.data.asset || ':&!!rate']); response['message'] = 'exchanged '||$bytes_amount||' bytes for '||$asset_amount||' asset.'; }", "messages": [ { "app": "payment", "payload": { "asset": "{trigger.data.asset}", "outputs": [ { "address": "{trigger.address}", "amount": "{ $asset_amount }" } ] } } ] }, { "messages": [ { "app": "state", "state": "{ response['message'] = 'accepted coins: '||trigger.output[[asset=base]]||' bytes and '||trigger.output[[asset=trigger.data.asset]]||' asset.'; }" } ] } ] } } ]
Technical information
Fees:
1,945 bytes
(353 headers, 1592 payload)
Level:979637
Witnessed level:979630
Main chain index:978457
Latest included mc index:978456
Status:stable/confirmed/final