Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
bV4+SaE+Lnnc4ET6PeQ/G1bbv2uzJb+8gMkU422Tf6s=
Received
25.09.2019 16:48:16
Confirmation delay (full node)
4 minutes 1 second
Confirmation delay (light node)
6 minutes 8 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
R/l2b4tTAjljv3hjdzX/OIcW34VwKjUEmnSmFdWIs3Y=
Parents
Uh+UddTWncCYn0YaESbZ1F8FpM68Gq8IriKJt3DmRb8=
Messages
Definition
Address:
PEY6UQWDYLKXZA6MVBNOLGN3AVKOGWOB
Definition:
[ "autonomous agent", { "init": "{ $provider = "HFNBIQTUNVMRM7PDP6NT2QRKLR62FOGR" ; $processor = "HFNBIQTUNVMRM7PDP6NT2QRKLR62FOGR" ; $fee = var[ "fee" ] otherwise 21000 ; // Obot by
[email protected]
// Get paid for doing computation on your computer, think Lambda function for Obyte // The perfect function is one that takes little input data or a link to a big data set, then do complex or private computation // real world examples are science data analysis like SETI or WCG // usage: // 1) function caller calls this AA with { "args" : '<value or json>' } and pays processing fee to get { "job" : <job number> } // 2) processor computes and send back to this AA { "job" : <job number> , "result" : <value or json> } // 3) provider only gets the processing fee when the result is sent back to caller by this AA // 4) result verification is up to the function caller, perhaps using simple technique like compare results from multiple Obots // setup: // set $processor address and fee above // the provider runs a headless wallet processor which listens for jobs from this AA // // For this array sorting Obot: // caller sends { "args" : "[ 3 , 4 , 1 , 2 ]" } with 21000 bytes and gets response { "job" : 1 } // wait for result { "job" : 1 , "result" : "[ 1 , 2 , 3 , 4 ]" } $txfee = 1000 ; }", "messages": { "cases": [ { "if": "{ trigger.address == $processor AND trigger.data.job }", "init": "{ $job = trigger.data.job || "" ; }", "messages": [ { "app": "data", "payload": { "job": "{ $job }", "result": "{ trigger.data.result }" } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{ $provider }", "amount": "{ var[ $job ] - ( 3 * $txfee ) }" }, { "address": "{ var[ "caller_" || $job ] }", "amount": "{ $txfee }" } ] } }, { "app": "state", "state": "{ if( ! trigger.data.result ) bounce( "must have result" ) ; if( var[ $job ] == false ) bounce( "there is no such job " || $job ) ; // clear job var[ $job ] = false ; var[ "caller_" || $job ] = false ; }" } ] }, { "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{ $processor }", "amount": 10000 } ] } }, { "app": "state", "state": "{ if( trigger.output[[asset=base]] < $fee ) bounce( "function requires fee of " || $fee ) ; // START JOB var[ "job" ] += 1 ; $newjob = var[ "job" ] || "" ; var[ $newjob ] = trigger.output[[asset=base]] - 10000 - $txfee ; // save current fee var[ "caller_" || $newjob ] = trigger.address ; // store caller to send result later // send job to listening Obot headless wallet response[ "job" ] = $newjob ; response[ "args" ] = "[ 3 , 4 , 1 , 2 ]" ; // demo purposes //response[ "args" ] = trigger.data.args ; // possible to have no args }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
3,123
bytes
(353 headers, 2770 payload)
Level:
1077788
Witnessed level:
1077780
Last ball unit:
PWLCscbtjtp5rtznAfLOQeE18oepNMEqiW2XbAXfQK0=
Main chain index:
1076551
Latest included mc index:
1076550
Status:
stable/confirmed/final