mirror of https://github.com/waku-org/nwaku.git
20 lines
553 B
Nim
20 lines
553 B
Nim
import
|
|
os, strutils, strformat, chronicles, json_rpc/[rpcclient, rpcserver], nimcrypto/sysrand,
|
|
libp2p/protobuf/minprotobuf,
|
|
libp2p/[peerinfo, multiaddress],
|
|
eth/common as eth_common, eth/keys,
|
|
system,
|
|
options
|
|
|
|
from strutils import rsplit
|
|
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
|
|
|
const sigWakuPath = sourceDir / "wakucallsigs.nim"
|
|
createRpcSigs(RpcHttpClient, sigWakuPath)
|
|
|
|
var node = newRpcHttpClient()
|
|
waitfor node.connect("localhost", Port(8545))
|
|
|
|
var res = waitfor node.wakuInfo()
|
|
echo "Waku info res: ", res
|