Wallet class that interacts with the HotWallet.

Implements

Properties

address: Address
networkId: NetworkId
rewardAddress: RewardAddress

Methods

  • Submits a transaction through the wallet.

    Parameters

    • tx: Transaction

      The transaction to submit.

    Returns Promise<TransactionId>

    • The ID of the submitted transaction.
  • Requests a transaction signature from the wallet.

    Parameters

    • tx: Transaction

      The transaction to sign.

    • partialSign: boolean = true

      Whether to partially sign the transaction.

    • signWithStakeKey: boolean = false

      Whether to also sign the transaction with the stake key.

    Returns Promise<TransactionWitnessSet>

    • The signed transaction.
  • Parameters

    • masterkey: Bip32PrivateKey
    • networkId: NetworkId = NetworkId.Testnet
    • addressType: AddressType = AddressType.BasePaymentKeyStakeKey

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