duniterpy.api.ws2p package

Submodules

duniterpy.api.ws2p.network module

duniterpy.api.ws2p.requests module

exception duniterpy.api.ws2p.requests.WS2PException

Bases: Exception

duniterpy.api.ws2p.requests.get_block(request_id: str, block_number: int) str

Return ws2p getBlock() request as json string

Returns:

duniterpy.api.ws2p.requests.get_blocks(request_id: str, from_number: int, count: int) str

Return ws2p getBlocks(fromNumber, count) request as json string

Returns:

duniterpy.api.ws2p.requests.get_current(request_id: str) str

Return ws2p getCurrent() request as json string

Returns:

duniterpy.api.ws2p.requests.get_requirements_pending(request_id: str, min_cert: int) str

Return ws2p getRequirementsPending(minCert) request as json string

Returns:

Module contents