VHY5SIRBKIQIAS7VHWIEGRRESUBZWWMI
[
"autonomous agent",
{
"messages": {
"cases": [
{
"if": "{trigger.data.createExchange AND trigger.data.token}",
"init": "{
$token = trigger.data.token;
if (
!asset[$token].exists
OR asset[$token].is_private
OR !asset[$token].is_transferrable
OR asset[$token].fixed_denominations
)
bounce("the token is not valid");
if (var['token_to_exchange.' || $token])
bounce("the exchange exist already");
}",
"messages": [
{
"app": "definition",
"payload": {
"definition": [
"autonomous agent",
{
"base_aa": "
JWXDH7IFMHIXFXVPCSMHJAY5DD7IMLSG",
"params": {
"expiry": "2020",
"fee": 2000
}
}
]
}
},
{
"app": "state",
"state": "{
$exchange = unit[response_unit].messages[[.app='definition']].payload.address;
var['token_to_exchange.' || $token] = $exchange;
var['exchange_to_token.' || $exchange] = $token;
response['exchange'] = $exchange;
}"
}
]
}
]
}
}
]
- MCI: 1170922
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"exchange": "IFGB34EIJGGPCWKZY7Q5IIF5HCHSZB6W"
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
28.12.2019 10:36:18
VHY5SIRBKIQIAS7VHWIEGRRESUBZWWMI
out
VHY5SIRBKIQIAS7VHWIEGRRESUBZWWMI
28.12.2019 10:36:18
in
VHY5SIRBKIQIAS7VHWIEGRRESUBZWWMI