13 lines
413 B
Plaintext
Raw Normal View History

import "@fluencelabs/aqua-lib/builtin.aqua"
func getPeerExternalAddresses(otherNodePeerId: string) -> []string:
on otherNodePeerId:
res <- Peer.identify()
<- res.external_addresses
2021-04-15 12:30:42 +03:00
-- it is possible to use `via` to built complex routes
func getDistantAddresses(target: string, viaNode: string) -> []string:
on target via viaNode:
res <- Peer.identify()
2021-04-14 17:32:01 +03:00
<- res.external_addresses