Creates an instance of BlockfrostProvider.
The configuration object for the provider.
OptionalbaseUrl?: stringAn optional, custom base URL for the Blockfrost API. Overrides the network setting for URL construction.
The network identifier (e.g., Mainnet, Preprod). This is ignored if a custom url is provided.
The Blockfrost project ID for authentication.
Confirms a transaction by its ID.
The transaction ID to confirm.
Optionaltimeout: numberOptional timeout in milliseconds. If omitted, uses a default.
A promise that resolves to true if the transaction is confirmed, otherwise false.
Evaluates a transaction by its CBOR representation.
The hex-encoded CBOR of the transaction to evaluate.
OptionaladditionalUtxos: UTxO[] = []Optional additional UTxOs to include in the evaluation.
A promise that resolves to an array of Redeemer objects with execution units.
Gets the network magic/ID for the provider.
The network identifier.
Retrieves the protocol parameters from the Blockfrost API.
A promise that resolves to the protocol parameters.
Get the current staking rewards balance for a reward account.
Reward account address or bech32 string.
A promise that resolves to the balance in lovelace.
List all UTxOs for an address that contain a specific asset.
Payment address. Address object or bech32 string.
Asset identifier (policyId + asset name hex).
A promise that resolves to matching UTxOs.
BlockfrostProvider is a provider for interacting with the Blockfrost API.
It extends the BaseProvider class and implements methods to fetch protocol parameters, unspent outputs, resolve datums, confirm transactions, and submit transactions.