3.0.ipv8.REST.network_endpoint

Classes

Module Contents

class 3.0.ipv8.REST.network_endpoint.NetworkEndpoint

Bases: 3.0.ipv8.REST.base_endpoint.BaseEndpoint[3.0.ipv8.types.IPv8]

This endpoint is responsible for handing all requests regarding the state of the network.

setup_routes() None

Register the names to make this endpoint callable.

async retrieve_peers(_: aiohttp.abc.Request) 3.0.ipv8.REST.base_endpoint.Response

Return a list of all known peers.