query.blockfrost.getparameters
Home > @blaze-cardano/query > Blockfrost > getParameters
Blockfrost.getParameters() method
This method fetches the protocol parameters from the Blockfrost 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.