60 lines
3.2 KiB
Nim
60 lines
3.2 KiB
Nim
## Portal State Network json-rpc calls
|
|
proc portal_stateNodeInfo(): NodeInfo
|
|
proc portal_stateRoutingTableInfo(): RoutingTableInfo
|
|
proc portal_stateAddEnr(enr: Record): bool
|
|
proc portal_stateAddEnrs(enrs: seq[Record]): bool
|
|
proc portal_stateGetEnr(nodeId: NodeId): Record
|
|
proc portal_stateDeleteEnr(nodeId: NodeId): bool
|
|
proc portal_stateLookupEnr(nodeId: NodeId): Record
|
|
proc portal_statePing(enr: Record): tuple[
|
|
enrSeq: uint64, customPayload: string]
|
|
proc portal_stateFindNodes(enr: Record): seq[Record]
|
|
proc portal_stateFindContent(enr: Record, contentKey: string): JsonNode
|
|
proc portal_stateOffer(
|
|
enr: Record, contentKey: string, contentValue: string): string
|
|
proc portal_stateRecursiveFindNodes(nodeId: NodeId): seq[Record]
|
|
proc portal_stateRecursiveFindContent(contentKey: string): string
|
|
proc portal_stateStore(contentKey: string, contentValue: string): bool
|
|
proc portal_stateLocalContent(contentKey: string): string
|
|
proc portal_stateGossip(contentKey: string, contentValue: string): int
|
|
|
|
## Portal History Network json-rpc calls
|
|
proc portal_historyNodeInfo(): NodeInfo
|
|
proc portal_historyRoutingTableInfo(): RoutingTableInfo
|
|
proc portal_historyAddEnr(enr: Record): bool
|
|
proc portal_historyAddEnrs(enrs: seq[Record]): bool
|
|
proc portal_historyGetEnr(nodeId: NodeId): Record
|
|
proc portal_historyDeleteEnr(nodeId: NodeId): bool
|
|
proc portal_historyLookupEnr(nodeId: NodeId): Record
|
|
proc portal_historyPing(enr: Record): tuple[
|
|
enrSeq: uint64, customPayload: string]
|
|
proc portal_historyFindNodes(enr: Record): seq[Record]
|
|
proc portal_historyFindContent(enr: Record, contentKey: string): JsonNode
|
|
proc portal_historyOffer(
|
|
enr: Record, contentKey: string, contentValue: string): string
|
|
proc portal_historyRecursiveFindNodes(nodeId: NodeId): seq[Record]
|
|
proc portal_historyRecursiveFindContent(contentKey: string): string
|
|
proc portal_historyStore(contentKey: string, contentValue: string): bool
|
|
proc portal_historyLocalContent(contentKey: string): string
|
|
proc portal_historyGossip(contentKey: string, contentValue: string): int
|
|
|
|
## 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): JsonNode
|
|
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
|