C# Class Paymetheus.Decred.Wallet.Wallet

ファイルを表示 Open project: decred/Paymetheus Class Usage Examples

Public Methods

Method 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

Method 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 method

public AccountName ( Account account ) : string
account Account
return string

ApplyTransactionChanges() public method

public ApplyTransactionChanges ( Paymetheus.Decred.Wallet.WalletChanges changes ) : void
changes Paymetheus.Decred.Wallet.WalletChanges
return void

CalculateBalances() public method

public CalculateBalances ( int requiredConfirmations ) : Paymetheus.Decred.Wallet.Balances[]
requiredConfirmations int
return Paymetheus.Decred.Wallet.Balances[]

CalculateSpendableBalance() public method

public CalculateSpendableBalance ( Account account, int minConf ) : Amount
account Account
minConf int
return Amount

EnumerateAccounts() public method

public EnumerateAccounts ( ) : AccountProperties>>.IEnumerable
return AccountProperties>>.IEnumerable

LookupAccountProperties() public method

public LookupAccountProperties ( Account account ) : Paymetheus.Decred.Wallet.AccountProperties
account Account
return Paymetheus.Decred.Wallet.AccountProperties

NumRecentBlocks() public static method

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
return int

OutputDestination() public method

public OutputDestination ( Paymetheus.Decred.Wallet.WalletTransaction output ) : string
output Paymetheus.Decred.Wallet.WalletTransaction
return string

UpdateAccountProperties() public method

public UpdateAccountProperties ( Account account, string name, uint externalKeyCount, uint internalKeyCount, uint importedKeyCount ) : void
account Account
name string
externalKeyCount uint
internalKeyCount uint
importedKeyCount uint
return void

Wallet() public method

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
return Paymetheus.Decred.Util