examples/archived/multi-service/air-scripts/get_latest_block.clj
boneyard93501 6381411ed9
Reorg (#10)
* init reorg

* updated readme

* fix CI

* remove outdated ipfs-node example

* add Readme

* update readme, add config file

Co-authored-by: folex <0xdxdy@gmail.com>
2021-07-16 02:04:18 -05:00

13 lines
441 B
Clojure

(xor
(seq
(call node_1 (service_1 "get_latest_block") [api_key] hex_result)
(call %init_peer_id% (returnService "run") [hex_result])
(call node_2 (service_2 "hex_to_int") [hex_result] result)
(call %init_peer_id% (returnService "run") [result])
)
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") ["XOR FAILED" %last_error%])
)
)