examples/archived/multi-service/air-scripts/get_latest_block_simple.clj

16 lines
444 B
Clojure
Raw Permalink Normal View History

2021-03-01 23:03:57 +00:00
(xor
(seq
2021-03-04 07:55:21 +00:00
(seq
(call relay ("op" "identity") [])
(call node_1 (service "get_latest_block") [api_key] hex_result)
)
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") [hex_result])
)
2021-03-01 23:03:57 +00:00
)
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") ["XOR FAILED" %last_error%])
)
)