BlockfrostProvider

scalus.cardano.node.BlockfrostProvider
See theBlockfrostProvider companion class

Companion object for BlockfrostProvider with factory methods and utilities.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def create(apiKey: String, baseUrl: String, network: Network, slotConfig: SlotConfig, maxConcurrentRequests: Int = ...)(using ec: ExecutionContext): Future[BlockfrostProvider]

Create a BlockfrostProvider with custom configuration.

Create a BlockfrostProvider with custom configuration.

Fetches protocol parameters during construction.

Value parameters

apiKey

Blockfrost API key

baseUrl

Blockfrost-compatible API base URL

maxConcurrentRequests

Maximum concurrent HTTP requests (default 5)

network

Cardano network (Mainnet or Testnet)

slotConfig

Slot configuration for the network

Attributes

Returns

Future containing the configured BlockfrostProvider

def localYaci(baseUrl: String = ..., maxConcurrentRequests: Int = ..., slotConfig: SlotConfig = ...)(using ec: ExecutionContext): Future[BlockfrostProvider]

Create a BlockfrostProvider for local Yaci DevKit.

Create a BlockfrostProvider for local Yaci DevKit.

Fetches protocol parameters during construction.

Value parameters

baseUrl

API base URL (default: http://localhost:8080/api/v1)

maxConcurrentRequests

Maximum concurrent HTTP requests (default 5)

slotConfig

Slot configuration (default: Yaci DevKit config with 1s slots)

Attributes

Returns

Future containing the configured BlockfrostProvider

def mainnet(apiKey: String, maxConcurrentRequests: Int = ...)(using ec: ExecutionContext): Future[BlockfrostProvider]

Create a BlockfrostProvider for Cardano mainnet.

Create a BlockfrostProvider for Cardano mainnet.

Fetches protocol parameters during construction.

Value parameters

apiKey

Blockfrost API key

maxConcurrentRequests

Maximum concurrent HTTP requests (default 5)

Attributes

Returns

Future containing the configured BlockfrostProvider

def parseUtxos(json: String): Utxos
def preprod(apiKey: String, maxConcurrentRequests: Int = ...)(using ec: ExecutionContext): Future[BlockfrostProvider]

Create a BlockfrostProvider for Cardano preprod testnet.

Create a BlockfrostProvider for Cardano preprod testnet.

Fetches protocol parameters during construction.

Value parameters

apiKey

Blockfrost API key

maxConcurrentRequests

Maximum concurrent HTTP requests (default 5)

Attributes

Returns

Future containing the configured BlockfrostProvider

def preview(apiKey: String, maxConcurrentRequests: Int = ...)(using ec: ExecutionContext): Future[BlockfrostProvider]

Create a BlockfrostProvider for Cardano preview testnet.

Create a BlockfrostProvider for Cardano preview testnet.

Fetches protocol parameters during construction.

Value parameters

apiKey

Blockfrost API key

maxConcurrentRequests

Maximum concurrent HTTP requests (default 5)

Attributes

Returns

Future containing the configured BlockfrostProvider

Concrete fields

val localUrl: String

Local Yaci DevKit API URL

Local Yaci DevKit API URL

Attributes

val mainnetUrl: String

Blockfrost API URL for Cardano mainnet

Blockfrost API URL for Cardano mainnet

Attributes

val preprodUrl: String

Blockfrost API URL for Cardano preprod testnet

Blockfrost API URL for Cardano preprod testnet

Attributes

val previewUrl: String

Blockfrost API URL for Cardano preview testnet

Blockfrost API URL for Cardano preview testnet

Attributes

Deprecated fields

val LocalUrl: String

Attributes

Deprecated
[Since version 0.14.1] Use localUrl instead
val MainnetUrl: String

Attributes

Deprecated
[Since version 0.14.1] Use mainnetUrl instead
val PreprodUrl: String

Attributes

Deprecated
[Since version 0.14.1] Use preprodUrl instead
val PreviewUrl: String

Attributes

Deprecated
[Since version 0.14.1] Use previewUrl instead