Abstract class for Wallet.

Implemented by

Constructors

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 UnspentOutputs 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 UnspentOutputs controlled by the wallet.

    Returns Promise<TransactionUnspentOutput[]>

    • The UnspentOutputs 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.
  • Posts 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.

    • partialSign: boolean

      Whether to partially sign the transaction.

    Returns Promise<TransactionWitnessSet>

    • The signed transaction.