SSKBHSV4LE6PUU7KWM2ZH26EX6AM7KJN
[
"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 ['seed'] = number_from_seed(timestamp);
var[var ['seed'] || '_play'] = trigger.address;
response['goto'] = 'https://obyte-music.firebaseapp.com/play/' || var[var ['seed']|| '_sell'];
}"
}
]
},
{
"if": "{trigger.data.sell AND trigger.output[[asset=base]] >= $sell_music_cost}",
"messages": [
{
"app": "state",
"state": "{
var ['seed'] = number_from_seed(timestamp);
var[var ['seed']|| '_sell'] = trigger.address;
response['goto'] = 'https://obyte-music.firebaseapp.com/sell/' || var[var ['seed']|| '_sell'];
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount