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]
|
2023-04-28 07:04:21 +00:00
|
|
|
proc portal_stateFindContent(enr: Record, contentKey: string): JsonNode
|
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]
|
2023-04-28 07:04:21 +00:00
|
|
|
proc portal_historyFindContent(enr: Record, contentKey: string): JsonNode
|
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
|
2023-10-20 10:06:25 +00:00
|
|
|
proc portal_beaconNodeInfo(): NodeInfo
|
|
|
|
proc portal_beaconRoutingTableInfo(): RoutingTableInfo
|
|
|
|
proc portal_beaconAddEnr(enr: Record): bool
|
|
|
|
proc portal_beaconAddEnrs(enrs: seq[Record]): bool
|
|
|
|
proc portal_beaconGetEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_beaconDeleteEnr(nodeId: NodeId): bool
|
|
|
|
proc portal_beaconLookupEnr(nodeId: NodeId): Record
|
|
|
|
proc portal_beaconPing(enr: Record): tuple[
|
2023-03-17 09:19:17 +00:00
|
|
|
enrSeq: uint64, customPayload: string]
|
2023-10-20 10:06:25 +00:00
|
|
|
proc portal_beaconFindNodes(enr: Record): seq[Record]
|
|
|
|
proc portal_beaconFindContent(enr: Record, contentKey: string): JsonNode
|
|
|
|
proc portal_beaconOffer(
|
2023-03-17 09:19:17 +00:00
|
|
|
enr: Record, contentKey: string, contentValue: string): string
|
2023-10-20 10:06:25 +00:00
|
|
|
proc portal_beaconRecursiveFindNodes(nodeId: NodeId): seq[Record]
|
|
|
|
proc portal_beaconRecursiveFindContent(contentKey: string): string
|
|
|
|
proc portal_beaconStore(contentKey: string, contentValue: string): bool
|
|
|
|
proc portal_beaconLocalContent(contentKey: string): string
|
|
|
|
proc portal_beaconGossip(contentKey: string, contentValue: string): int
|
|
|
|
proc portal_beaconRandomGossip(contentKey: string, contentValue: string): int
|