ReadOnlyWallet class abstract
Cardano read-only wallet that holds transactions, staking rewards and their associated addresses. A public, read-ony wallet can be built given a stakingAddress and a networkId. All blockchain data retrieval is delegated to the BlockchainAdapter.
- Implementers
Constructors
Properties
-
addresses
→ List<
ShelleyAddress> -
no setter
-
assets
→ Map<
AssetId, CurrencyAsset> -
assets present in this wallet indexed by assetId
no setter
- balance → Coin
-
balance of wallet in lovelace
no setter
- blockchainAdapter → BlockchainAdapter
-
access to the bockchain
no setter
- calculatedBalance → Coin
-
calculate balance from transactions and rewards
no setter
-
currencies
→ Map<
AssetId, Coin> -
balances of native tokens indexed by assetId
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadingTime → Duration
-
Duration since update was called. Set to zero when update completes.
no setter
- networkId → NetworkId
-
networkId is either mainnet or nestnet
no setter
- readOnly → bool
-
return true if this is read-only wallet that can't sign transactions and send funds.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stakeAccounts
→ List<
StakeAccount> -
optional stake pool details
no setter
- stakeAddress → ShelleyAddress
-
staking address
no setter
-
transactions
→ List<
WalletTransaction> -
no setter
-
unspentTransactions
→ List<
WalletTransaction> -
no setter
- walletId → WalletId
-
Return walletId. ID is public staking address for Shelley wallets.
no setter
- walletName → String
-
name of wallet
no setter
Methods
-
filterTransactions(
{required AssetId assetId}) → List< WalletTransaction> -
findAssetByTicker(
String ticker) → CurrencyAsset? -
findAssetWhere(
bool matcher(CurrencyAsset asset)) → CurrencyAsset? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
{required int balance, required List< RawTransaction> transactions, required List<ShelleyAddress> usedAddresses, required Map<String, CurrencyAsset> assets, required List<StakeAccount> stakeAccounts}) → bool -
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → Future< Result< bool, String> > - Update or sync wallet transactions with blockchain. Return true if data changed. Is ignored if loadingTime is not zero.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited