Skip to main content

query.maestro.getparameters

Home > @blaze-cardano/query > Maestro > getParameters

Maestro.getParameters() method

This method fetches the protocol parameters from the Maestro API.

Signature:

getParameters(): Promise<ProtocolParameters>;

Returns:

Promise<ProtocolParameters>

A Promise that resolves to a ProtocolParameters object.

Remarks

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.