Wallet class that interacts with the HotWallet.

Implements

Properties

address: Address
networkId: NetworkId
rewardAddress: RewardAddress

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.

    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.

    • OptionalsignWithStakeKey: boolean

      Whether to also sign the transaction with the stake key.

    Returns Promise<TransactionWitnessSet>

    • The signed transaction.
  • Parameters

    Returns Promise<HotWallet>

  • Parameters

    • masterkey: Bip32PrivateKey
    • OptionalnetworkId: NetworkId
    • OptionaladdressType: AddressType

    Returns Promise<{
        address: Address;
        paymentKey: Bip32PrivateKey;
        publicKey: Bip32PublicKey;
        stakePaymentKey: Bip32PrivateKey;
    }>