examples/multi-service/air-scripts/get_block_simple.clj
2021-03-04 01:57:19 -06:00

16 lines
439 B
Clojure

(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%])
)
)