Skip to main content
Version: 0.2.38

sdk.coldwallet

Home > @blaze-cardano/sdk > ColdWallet

ColdWallet class

Wallet class that interacts with the ColdWallet.

Signature:

declare class ColdWallet implements Wallet$1 

Implements: Wallet$1

Constructors

Constructor

Modifiers

Description

(constructor)(address, networkId, provider)

Constructs a new instance of the ColdWallet class.

Properties

Property

Modifiers

Type

Description

address

readonly

Address

networkId

readonly

NetworkId

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.