examples/intro/1-hello-world/aqua/getting-started.aqua
2021-07-20 14:00:26 +03:00

10 lines
280 B
Plaintext

import "@fluencelabs/aqua-lib/builtin.aqua"
service HelloWorld("HelloWorld"):
recieveHello(from: PeerId) -> string
func sayHello(peerId: PeerId, relayPeerId: PeerId) -> string:
on peerId via relayPeerId:
res <- HelloWorld.recieveHello(%init_peer_id%)
<- res