M7O4R6DQ27LGYPYWWPEF3SFYYYHKQWTL
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{
$BOUNCE_FEE = 10000;
$TYPICAL_FEE = 1000;
$REIMBURSEMENT = $BOUNCE_FEE - $TYPICAL_FEE;
}",
"messages": {
"cases": [
{
"if": "{ trigger.data.seller }",
"init": "{
$seller = trigger.address;
$start_price = trigger.data.start_price otherwise bounce ("start price is missing");
$lowest_price = trigger.data.lowest_price otherwise bounce ("lowest price is missing");
$time_steps = trigger.data.time_steps otherwise bounce ("time steps missing");
$price_steps = trigger.data.price_steps otherwise bounce ("price steps missing");
$product_description = trigger.data.product_description otherwise bounce ("product description is missing");
$product_url = trigger.data.product_url;
$start_time = trigger.data.start_time;
$end_time = trigger.data.end_time;
$reference = sha256($seller || $start_price || $lowest_price || $time_steps || $price_steps || $product_description || timestamp);
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{$REIMBURSEMENT}"
}
]
}
},
{
"app": "state",
"state": "{
$time = timestamp;
var[$reference] = 'auction_created';
var[$reference||'.seller'] = $seller;
var[$reference||'.start_price'] = $start_price;
var[$reference||'.lowest_price'] = $lowest_price;
var[$reference||'.time_steps'] = $time_steps;
var[$reference||'.price_steps'] = $price_steps;
var[$reference||'.product_description'] = $product_description;
var[$reference||'.product_url'] = $product_url;
var[$reference||'.start_time'] = $start_time;
var[$reference||'.end_time'] = $end_time;
response['reference'] = $reference;
response['status'] = var[$reference];
}"
}
]
},
{
"init": "{
bounce("Enter data fields");
}",
"messages": [
{
"app": "state",
"state": "{
response['usage'] = 'Enter data fields';
}"
}
]
}
]
}
}
]
- MCI: 1044579
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"reference": "gCMuaW01TJAY/UgGHYgfPMttPR7QMCQblZaxLtMKZSQ=",
"status": "auction_created"
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
04.09.2019 18:07:43
M7O4R6DQ27LGYPYWWPEF3SFYYYHKQWTL
out
04.09.2019 18:07:43
in
M7O4R6DQ27LGYPYWWPEF3SFYYYHKQWTL