sdk.maestro.getparameters
Home > @blaze-cardano/sdk > Maestro > getParameters
Maestro.getParameters() method
This method fetches the protocol parameters from the Maestro API. It constructs the query URL, sends a GET request with the appropriate headers, and processes the response. The response is parsed into a ProtocolParameters object, which is then returned. If the response is not in the expected format, an error is thrown.
Signature:
getParameters(): Promise<ProtocolParameters>;
Returns:
Promise<ProtocolParameters>
A Promise that resolves to a ProtocolParameters object.