Class Blaze<ProviderType, WalletType>

The Blaze class is used to create and manage Cardano transactions. It requires a provider and a wallet to interact with the blockchain and manage funds.

Type Parameters

Properties

provider: ProviderType
wallet: WalletType

Methods

  • Signs a transaction using the wallet.

    Parameters

    • tx: Transaction

      The transaction to sign.

    Returns Promise<Transaction>

    • The signed transaction.
  • Submits a transaction to the blockchain.

    Parameters

    • tx: Transaction

      The transaction to submit.

    • OptionaluseProvider: boolean

    Returns Promise<TransactionId>

    • The transaction ID.

    If the transaction submission fails.

    This method sends the provided transaction to the blockchain network using the configured wallet, or the configured provider if set.