4SLETM44NN3JDD6PUNOIUNR63SGUQYV5
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{
$play_music_cost = 20000;
$sell_music_cost = 50000;
}",
"messages": {
"cases": [
{
"if": "{trigger.data.play AND trigger.output[[asset=base]] >= $play_music_cost}",
"messages": [
{
"app": "state",
"state": "{
var ['current_time'] = number_from_seed(timestamp);
var[var ['current_time'] || '_play'] = trigger.address;
response['goto'] = 'https://obyte-music.firebaseapp.com/play/' || var[trigger.address || '_play'];
}"
}
]
},
{
"if": "{trigger.data.sell AND trigger.output[[asset=base]] >= $sell_music_cost}",
"messages": [
{
"app": "state",
"state": "{
var ['current_time'] = number_from_seed(timestamp);
var[var ['current_time']|| '_sell'] = trigger.address;
response['goto'] = 'https://obyte-music.firebaseapp.com/sell/' || var[trigger.address || '_sell'];
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount