Skip to main content
Version: Next

wallet.webwallet

Home > @blaze-cardano/wallet > WebWallet

WebWallet class

Wallet class that interacts with the WalletInterface.

Signature:

export declare class WebWallet implements Wallet 

Implements: Wallet

Constructors

Constructor

Modifiers

Description

(constructor)(webWallet)

Constructs a new instance of the WebWallet class.

Methods

Method

Modifiers

Description

getBalance()

Retrieves the total available balance of the wallet, encoded in CBOR.

getChangeAddress()

Retrieves an address owned by the wallet which should be used to return transaction change.

getCollateral()

Retrieves the collateral UTxO(s) for the wallet.

getNetworkId()

Retrieves the network ID of the currently connected account.

getRewardAddresses()

Retrieves the reward addresses controlled by the wallet.

getUnspentOutputs()

Retrieves the UTxO(s) controlled by the wallet.

getUnusedAddresses()

Retrieves all unused addresses controlled by the wallet.

getUsedAddresses()

Retrieves all used addresses controlled by the wallet.

postTransaction(tx)

Submits a transaction through the wallet.

signData(address, payload)

Requests signed data from the wallet.

signTransaction(tx, partialSign)

Requests a transaction signature from the wallet.