nimbus-eth1/fluffy/rpc/rpc_calls/rpc_discovery_calls.nim

16 lines
599 B
Nim

# Discovery v5 json-rpc calls
proc discv5_routingTableInfo(): RoutingTableInfo
proc discv5_nodeInfo(): NodeInfo
proc discv5_updateNodeInfo(kvPairs: seq[(string, string)]): RoutingTableInfo
proc discv5_setEnr(enr: Record): bool
proc discv5_getEnr(nodeId: NodeId): Record
proc discv5_deleteEnr(nodeId: NodeId): bool
proc discv5_lookupEnr(nodeId: NodeId): Record
proc discv5_ping(nodeId: Record): PongResponse
proc discv5_findNodes(nodeId: Record, distances: seq[uint16]): seq[Record]
proc discv5_talk(nodeId: Record, protocol, payload: string): string
proc discv5_recursiveFindNodes(): seq[Record]