Wallet class that interacts with the HotSingleWallet. This is like HotWallet, but without key derivation.

Implements

Constructors

  • Constructs a new instance of the HotSingleWallet class.

    Parameters

    Returns HotSingleWallet

Properties

address: Address
networkId: NetworkId

Methods

  • Retrieves the total available balance of the wallet, encoded in CBOR.

    Returns Promise<Value>

    • The balance of the wallet.
  • Retrieves an address owned by the wallet which should be used to return transaction change.

    Returns Promise<Address>

    • The change address.
  • Retrieves the collateral UTxO(s) for the wallet.

    Returns Promise<TransactionUnspentOutput[]>

    • The collateral for the wallet.
  • Retrieves the network ID of the currently connected account.

    Returns Promise<NetworkId>

    • The network ID of the currently connected account.
  • Retrieves the reward addresses controlled by the wallet.

    Returns Promise<RewardAddress[]>

    • The reward addresses controlled by the wallet.
  • Retrieves the UTxO(s) controlled by the wallet.

    Returns Promise<TransactionUnspentOutput[]>

    • The UTXO(s) controlled by the wallet.
  • Retrieves all unused addresses controlled by the wallet.

    Returns Promise<Address[]>

    • The unused addresses controlled by the wallet.
  • Retrieves all used addresses controlled by the wallet.

    Returns Promise<Address[]>

    • The used addresses controlled by the wallet.
  • Submits a transaction through the wallet.

    Parameters

    • tx: Transaction

      The transaction to submit.

    Returns Promise<TransactionId>

    • The ID of the submitted transaction.
  • Requests signed data from the wallet. Not supported, will always throw an error.

    Parameters

    • address: Address

      The address to sign the data with.

    • payload: string

      The data to sign.

    Returns Promise<CIP30DataSignature>

    • The signed data.
  • Requests a transaction signature from the wallet.

    Parameters

    • tx: Transaction

      The transaction to sign.

    • OptionalpartialSign: boolean

      Whether to partially sign the transaction.

    Returns Promise<TransactionWitnessSet>

    • The signed transaction.