mirror of
https://github.com/fluencelabs/examples
synced 2025-06-12 17:41:21 +00:00
add more AIR scripts
This commit is contained in:
16
multi-service/air-scripts/get_block_simple.clj
Normal file
16
multi-service/air-scripts/get_block_simple.clj
Normal file
@ -0,0 +1,16 @@
|
||||
(xor
|
||||
(seq
|
||||
(seq
|
||||
(call relay ("op" "identity") [])
|
||||
(call node_1 (service "get_block") [api_key block_num] result)
|
||||
)
|
||||
(seq
|
||||
(call relay ("op" "identity") [])
|
||||
(call %init_peer_id% (returnService "run") [result])
|
||||
)
|
||||
)
|
||||
(seq
|
||||
(call relay ("op" "identity") [])
|
||||
(call %init_peer_id% (returnService "run") ["XOR FAILED" %last_error%])
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user