Provider

scalus.cardano.node.Provider
trait Provider

Provider for Cardano blockchain operations.

Provider is the cross-platform interface for interacting with Cardano nodes. All methods return Future values and work on both JVM and JavaScript platforms.

Use scalus.utils.await extension for blocking operations on JVM when needed.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def findUtxo(input: TransactionInput)(using ExecutionContext): Future[Either[RuntimeException, Utxo]]
def findUtxo(address: Address, transactionId: Option[TransactionHash] = ..., datum: Option[DatumOption] = ..., minAmount: Option[Coin] = ...)(using ExecutionContext): Future[Either[RuntimeException, Utxo]]
def findUtxos(inputs: Set[TransactionInput])(using ExecutionContext): Future[Either[RuntimeException, Utxos]]
def findUtxos(address: Address, transactionId: Option[TransactionHash] = ..., datum: Option[DatumOption] = ..., minAmount: Option[Coin] = ..., minRequiredTotalAmount: Option[Coin] = ...)(using ExecutionContext): Future[Either[RuntimeException, Utxos]]
def submit(transaction: Transaction)(using ExecutionContext): Future[Either[SubmitError, TransactionHash]]