2021-11-24 07:45:55 +00:00
|
|
|
## Portal State Network json-rpc calls
|
|
|
|
proc portal_state_nodeInfo(): NodeInfo
|
|
|
|
proc portal_state_routingTableInfo(): RoutingTableInfo
|
2021-12-08 08:26:31 +00:00
|
|
|
proc portal_state_lookupEnr(nodeId: NodeId): Record
|
2022-02-02 21:48:33 +00:00
|
|
|
proc portal_state_addEnrs(enrs: seq[Record]): bool
|
|
|
|
proc portal_state_ping(enr: Record): tuple[
|
|
|
|
seqNum: uint64, customPayload: string]
|
|
|
|
proc portal_state_findNodes(enr: Record): seq[Record]
|
|
|
|
proc portal_state_findContent(enr: Record, contentKey: string): tuple[
|
|
|
|
connectionId: Option[string],
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
|
|
|
proc portal_state_findContentExt(enr: Record, contentKey: string): tuple[
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
|
|
|
proc portal_state_offerExt(enr: Record, contentKey: string): bool
|
2021-12-03 08:51:25 +00:00
|
|
|
proc portal_state_recursiveFindNodes(): seq[Record]
|
2021-11-24 07:45:55 +00:00
|
|
|
|
|
|
|
## Portal History Network json-rpc calls
|
|
|
|
proc portal_history_nodeInfo(): NodeInfo
|
|
|
|
proc portal_history_routingTableInfo(): RoutingTableInfo
|
2021-12-08 08:26:31 +00:00
|
|
|
proc portal_history_lookupEnr(nodeId: NodeId): Record
|
2022-02-02 21:48:33 +00:00
|
|
|
proc portal_history_addEnrs(enrs: seq[Record]): bool
|
|
|
|
proc portal_history_ping(enr: Record): tuple[
|
|
|
|
seqNum: uint64, customPayload: string]
|
|
|
|
proc portal_history_findNodes(enr: Record): seq[Record]
|
|
|
|
proc portal_history_findContent(enr: Record, contentKey: string): tuple[
|
|
|
|
connectionId: Option[string],
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
|
|
|
proc portal_history_findContentExt(enr: Record, contentKey: string): tuple[
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
|
|
|
proc portal_history_offerExt(enr: Record, contentKey: string): bool
|
2021-12-03 08:51:25 +00:00
|
|
|
proc portal_history_recursiveFindNodes(): seq[Record]
|