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
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_stateAddEnr(enr: Record): bool
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_stateAddEnrs(enrs: seq[Record]): bool
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_stateGetEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_stateDeleteEnr(nodeId: NodeId): bool
|
|
|
|
proc portal_stateLookupEnr(nodeId: NodeId): Record
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_statePing(enr: Record): tuple[
|
2022-12-16 07:49:18 +00:00
|
|
|
enrSeq: uint64, customPayload: string]
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_stateFindNodes(enr: Record): seq[Record]
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_stateFindContent(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
connectionId: Option[string],
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_stateFindContentFull(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2023-01-17 13:47:10 +00:00
|
|
|
proc portal_stateOffer(
|
|
|
|
enr: Record, contentKey: string, contentValue: string): string
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_stateRecursiveFindNodes(nodeId: NodeId): seq[Record]
|
|
|
|
proc portal_stateRecursiveFindContent(contentKey: string): string
|
|
|
|
proc portal_stateStore(contentKey: string, contentValue: string): bool
|
2022-12-16 10:00:10 +00:00
|
|
|
proc portal_stateLocalContent(contentKey: string): string
|
2023-01-17 13:47:10 +00:00
|
|
|
proc portal_stateGossip(contentKey: string, contentValue: string): int
|
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
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_historyAddEnr(enr: Record): bool
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_historyAddEnrs(enrs: seq[Record]): bool
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_historyGetEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_historyDeleteEnr(nodeId: NodeId): bool
|
|
|
|
proc portal_historyLookupEnr(nodeId: NodeId): Record
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_historyPing(enr: Record): tuple[
|
2022-12-16 07:49:18 +00:00
|
|
|
enrSeq: uint64, customPayload: string]
|
2022-10-10 13:15:57 +00:00
|
|
|
proc portal_historyFindNodes(enr: Record): seq[Record]
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_historyFindContent(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
connectionId: Option[string],
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_historyFindContentFull(enr: Record, contentKey: string): tuple[
|
2022-02-02 21:48:33 +00:00
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
2023-01-17 13:47:10 +00:00
|
|
|
proc portal_historyOffer(
|
|
|
|
enr: Record, contentKey: string, contentValue: string): string
|
2022-12-16 07:49:18 +00:00
|
|
|
proc portal_historyRecursiveFindNodes(nodeId: NodeId): seq[Record]
|
|
|
|
proc portal_historyRecursiveFindContent(contentKey: string): string
|
|
|
|
proc portal_historyStore(contentKey: string, contentValue: string): bool
|
2022-12-16 10:00:10 +00:00
|
|
|
proc portal_historyLocalContent(contentKey: string): string
|
2023-01-17 13:47:10 +00:00
|
|
|
proc portal_historyGossip(contentKey: string, contentValue: string): int
|
2023-03-17 09:19:17 +00:00
|
|
|
|
|
|
|
## Portal Beacon Light Client Network json-rpc calls
|
|
|
|
proc portal_beaconLightClientNodeInfo(): NodeInfo
|
|
|
|
proc portal_beaconLightClientRoutingTableInfo(): RoutingTableInfo
|
|
|
|
proc portal_beaconLightClientAddEnr(enr: Record): bool
|
|
|
|
proc portal_beaconLightClientAddEnrs(enrs: seq[Record]): bool
|
|
|
|
proc portal_beaconLightClientGetEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_beaconLightClientDeleteEnr(nodeId: NodeId): bool
|
|
|
|
proc portal_beaconLightClientLookupEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_beaconLightClientPing(enr: Record): tuple[
|
|
|
|
enrSeq: uint64, customPayload: string]
|
|
|
|
proc portal_beaconLightClientFindNodes(enr: Record): seq[Record]
|
|
|
|
proc portal_beaconLightClientFindContent(enr: Record, contentKey: string): tuple[
|
|
|
|
connectionId: Option[string],
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
|
|
|
proc portal_beaconLightClientFindContentFull(enr: Record, contentKey: string): tuple[
|
|
|
|
content: Option[string],
|
|
|
|
enrs: Option[seq[Record]]]
|
|
|
|
proc portal_beaconLightClientOffer(
|
|
|
|
enr: Record, contentKey: string, contentValue: string): string
|
|
|
|
proc portal_beaconLightClientRecursiveFindNodes(nodeId: NodeId): seq[Record]
|
|
|
|
proc portal_beaconLightClientRecursiveFindContent(contentKey: string): string
|
|
|
|
proc portal_beaconLightClientStore(contentKey: string, contentValue: string): bool
|
|
|
|
proc portal_beaconLightClientLocalContent(contentKey: string): string
|
|
|
|
proc portal_beaconLightClientGossip(contentKey: string, contentValue: string): int
|