Wallet class that interacts with the ColdWallet.

Implements

Constructors

  • Constructs a new instance of the ColdWallet class.

    Parameters

    • address: Address

      The address of the wallet.

    • networkId: NetworkId

      The network ID of the wallet.

    • provider: Provider

      The provider of the wallet.

    Returns ColdWallet

Properties

address: Address
networkId: NetworkId

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
    • _partialSign: boolean = true

    Returns Promise<TransactionWitnessSet>

    • The signed transaction.