2021-11-24 07:45:55 +00:00
|
|
|
## Portal State Network json-rpc calls
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_stateNodeInfo(): NodeInfo
|
|
|
|
proc portal_stateRoutingTableInfo(): RoutingTableInfo
|
|
|
|
proc portal_stateLookupEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_stateAddEnrs(enrs: seq[Record]): bool
|
|
|
|
proc portal_statePing(enr: Record): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
seqNum: uint64, customPayload: string]
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_stateFindNodes(enr: Record): seq[Record]
|
|
|
|
proc portal_stateFindContentRaw(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
connectionId: Option[string],
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_stateFindContent(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_stateOffer(enr: Record, contentKey: string): bool
|
|
|
|
proc portal_stateRecursiveFindNodes(): seq[Record]
|
2021-11-24 07:45:55 +00:00
|
|
|
|
|
|
|
## Portal History Network json-rpc calls
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_historyNodeInfo(): NodeInfo
|
|
|
|
proc portal_historyRoutingTableInfo(): RoutingTableInfo
|
|
|
|
proc portal_historyLookupEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_historyAddEnrs(enrs: seq[Record]): bool
|
|
|
|
proc portal_historyPing(enr: Record): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
seqNum: uint64, customPayload: string]
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_historyFindNodes(enr: Record): seq[Record]
|
|
|
|
proc portal_historyFindContentRaw(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
connectionId: Option[string],
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_historyFindContent(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2022-10-11 10:10:54 +00:00
|
|
|
proc portal_historyOffer(contentKey: string, content: string): int
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_historyRecursiveFindNodes(): seq[Record]
|
2022-12-13 18:22:36 +00:00
|
|
|
proc portal_historyStore(contentKey: string, content: string): bool
|