C# Class Paymetheus.Decred.Wallet.Wallet

Afficher le fichier Open project: decred/Paymetheus Class Usage Examples

Méthodes publiques

Méthode Description
AccountName ( Account account ) : string
ApplyTransactionChanges ( Paymetheus.Decred.Wallet.WalletChanges changes ) : void
CalculateBalances ( int requiredConfirmations ) : Paymetheus.Decred.Wallet.Balances[]
CalculateSpendableBalance ( Account account, int minConf ) : Amount
EnumerateAccounts ( ) : AccountProperties>>.IEnumerable
LookupAccountProperties ( Account account ) : Paymetheus.Decred.Wallet.AccountProperties
NumRecentBlocks ( BlockChainIdentity blockChain ) : int

The number of recent blocks which are always kept in memory in a synced wallet. Transactions from these recent blocks are used to subtract output amounts from the total balance to calculate spendable balances given some number of confirmations. This value may not be less than the coinbase maturity level, or immature coinbase outputs will not be subtracted from the spendable balance.

OutputDestination ( Paymetheus.Decred.Wallet.WalletTransaction output ) : string
UpdateAccountProperties ( Account account, string name, uint externalKeyCount, uint internalKeyCount, uint importedKeyCount ) : void
Wallet ( BlockChainIdentity activeChain, TransactionSet txSet, List bip0032Accounts, Paymetheus.Decred.Wallet.AccountProperties importedAccount, BlockIdentity chainTip ) : Paymetheus.Decred.Util

Private Methods

Méthode Description
AddTransactionToTotals ( Paymetheus.Decred.Wallet.WalletTransaction tx, AccountProperties>.Dictionary modifiedAccounts ) : void
OnChangesProcessed ( ChangesProcessedEventArgs e ) : void
OutputsToAccount ( Paymetheus.Decred.Wallet.WalletTransaction outputs, Account account ) : IEnumerable
RemoveTransactionFromTotals ( Paymetheus.Decred.Wallet.WalletTransaction tx, AccountProperties>.Dictionary modifiedAccounts ) : void

Method Details

AccountName() public méthode

public AccountName ( Account account ) : string
account Account
Résultat string

ApplyTransactionChanges() public méthode

public ApplyTransactionChanges ( Paymetheus.Decred.Wallet.WalletChanges changes ) : void
changes Paymetheus.Decred.Wallet.WalletChanges
Résultat void

CalculateBalances() public méthode

public CalculateBalances ( int requiredConfirmations ) : Paymetheus.Decred.Wallet.Balances[]
requiredConfirmations int
Résultat Paymetheus.Decred.Wallet.Balances[]

CalculateSpendableBalance() public méthode

public CalculateSpendableBalance ( Account account, int minConf ) : Amount
account Account
minConf int
Résultat Amount

EnumerateAccounts() public méthode

public EnumerateAccounts ( ) : AccountProperties>>.IEnumerable
Résultat AccountProperties>>.IEnumerable

LookupAccountProperties() public méthode

public LookupAccountProperties ( Account account ) : Paymetheus.Decred.Wallet.AccountProperties
account Account
Résultat Paymetheus.Decred.Wallet.AccountProperties

NumRecentBlocks() public static méthode

The number of recent blocks which are always kept in memory in a synced wallet. Transactions from these recent blocks are used to subtract output amounts from the total balance to calculate spendable balances given some number of confirmations. This value may not be less than the coinbase maturity level, or immature coinbase outputs will not be subtracted from the spendable balance.
public static NumRecentBlocks ( BlockChainIdentity blockChain ) : int
blockChain BlockChainIdentity
Résultat int

OutputDestination() public méthode

public OutputDestination ( Paymetheus.Decred.Wallet.WalletTransaction output ) : string
output Paymetheus.Decred.Wallet.WalletTransaction
Résultat string

UpdateAccountProperties() public méthode

public UpdateAccountProperties ( Account account, string name, uint externalKeyCount, uint internalKeyCount, uint importedKeyCount ) : void
account Account
name string
externalKeyCount uint
internalKeyCount uint
importedKeyCount uint
Résultat void

Wallet() public méthode

public Wallet ( BlockChainIdentity activeChain, TransactionSet txSet, List bip0032Accounts, Paymetheus.Decred.Wallet.AccountProperties importedAccount, BlockIdentity chainTip ) : Paymetheus.Decred.Util
activeChain BlockChainIdentity
txSet TransactionSet
bip0032Accounts List
importedAccount Paymetheus.Decred.Wallet.AccountProperties
chainTip BlockIdentity
Résultat Paymetheus.Decred.Util