nwaku/waku/v2/node/jsonrpc/debug_api.nim

20 lines
406 B
Nim

{.push raises: [Defect, CatchableError].}
import
chronicles,
json_rpc/rpcserver,
../wakunode2
logScope:
topics = "debug api"
proc installDebugApiHandlers*(node: WakuNode, rpcsrv: RpcServer) =
## Debug API version 1 definitions
rpcsrv.rpc("get_waku_v2_debug_v1_info") do() -> WakuInfo:
## Returns information about WakuNode
debug "get_waku_v2_debug_v1_info"
return node.info()