mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-04-01 06:51:24 +00:00
13 lines
413 B
Plaintext
13 lines
413 B
Plaintext
import "@fluencelabs/aqua-lib/builtin.aqua"
|
|
|
|
func getPeerExternalAddresses(otherNodePeerId: string) -> []string:
|
|
on otherNodePeerId:
|
|
res <- Peer.identify()
|
|
<- res.external_addresses
|
|
|
|
-- it is possible to use `via` to built complex routes
|
|
func getDistantAddresses(target: string, viaNode: string) -> []string:
|
|
on target via viaNode:
|
|
res <- Peer.identify()
|
|
<- res.external_addresses
|