Chain Synchronization Mini-Protocol
- class ogmios.chainsync.FindIntersection(client: Client)
Bases:
object
Ogmios method to find a point on the blockchain. The first point that is found in the provided list will be returned.
NOTE: This class is not intended to be used directly. Instead, use the Client.find_intersection method.
- Parameters:
client (Client) – The client to use for the request.
- receive()
Receive the response.
- class ogmios.chainsync.NextBlock(client: Client)
Bases:
object
Ogmios method to request the next block in the blockchain.
- Parameters:
client (Client) – The client to use for the request.
- execute(id: Any | None = None)
Send and receive the request.
- receive()
Receive a previously requested response.
- send(id: Any | None = None) None
Send the request.
- Parameters:
jsonrpc (Jsonrpc) – The JSON-RPC version to use.
method (Method) – The method to use.
id (Any) – The ID of the request.