Skip to main content
Version: Next

sdk.blockfrost.resolvedatum

Home > @blaze-cardano/sdk > Blockfrost > resolveDatum

Blockfrost.resolveDatum() method

This method returns the datum for the datum hash given as argument.

Signature:

resolveDatum(datumHash: DatumHash): Promise<PlutusData>;

Parameters

Parameter

Type

Description

datumHash

DatumHash

The hash of a datum

Returns:

Promise<PlutusData>

A Promise that resolves to PlutusData

Remarks

The response is parsed into a PlutusData type, which is then returned. If the response is not in the expected format, an error is thrown.