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

  • 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
    • _payload: string

    Returns Promise<CIP30DataSignature>

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

    Parameters

    • _tx: Transaction
    • Optional_partialSign: boolean

    Returns Promise<TransactionWitnessSet>

    • The signed transaction.