C# Class Paymetheus.Rpc.WalletClient

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

Méthodes publiques

Méthode Description
AccountsAsync ( ) : Task
CancelRequests ( ) : void
CloseWallet ( ) : Task
ConnectAsync ( string networkAddress, string rootCertificate ) : Task
CreateWallet ( string pubPassphrase, string privPassphrase, byte seed ) : Task
Disconnect ( ) : Task
DiscoverAccountsAsync ( string passphrase ) : Task
DiscoverAddressesAsync ( ) : Task
Dispose ( ) : void
FetchHeadersAsync ( ) : BlockIdentity?>>.Task
FundTransactionAsync ( Account account, Amount targetAmount, int requiredConfirmations ) : Amount>>.Task
GetTransactionsAsync ( int minRecentTransactions, int minRecentBlocks ) : Task
ImportPrivateKeyAsync ( Account account, string privateKeyWif, bool rescan, string passphrase ) : Task
ImportScriptAsync ( byte scriptBytes, bool rescan, int scanFrom, string passphrase ) : Task
Initialize ( ) : void
LoadActiveDataFiltersAsync ( ) : Task
NetworkAsync ( ) : Task
NextAccountAsync ( string passphrase, string accountName ) : Task
NextExternalAddressAsync ( Account account ) : string>>.Task

Queries the RPC server for the next external BIP0044 address for an account

NextInternalAddressAsync ( Account account ) : Task
OpenWallet ( string pubPassphrase ) : Task
PublishTransactionAsync ( byte signedTransaction ) : Task
PurchaseTicketsAsync ( Account account, Amount spendLimit, int reqConfs, Paymetheus.Decred.Wallet.Address ticketAddress, uint number, Paymetheus.Decred.Wallet.Address poolAddress, double poolFees, uint expiry, Amount txFee, Amount ticketFee, string passphrase ) : Task>
RenameAccountAsync ( Account account, string newAccountName ) : Task
RescanFromBlockHeightAsync ( int beginHeight, Action progressCallback = null ) : Task
SelectUnspentOutputs ( Account account, Amount targetAmount, int requiredConfirmations ) : Amount>>.Task
SignTransactionAsync ( string passphrase, Paymetheus.Decred.Transaction tx ) : bool>>.Task
StakeDifficultyAsync ( ) : Task
StakeInfoAsync ( ) : Task
StartConsensusRpc ( ConsensusServerRpcOptions options ) : Task
SubscribeToBlockNotificationsAsync ( ) : Task
Synchronize ( EventHandler walletEventHandler ) : Task>>.Task

Begins synchronization of the client with the remote wallet process. A delegate must be passed to be connected to the wallet's ChangesProcessed event to avoid a race where additional notifications are processed in the sync task before the caller can connect the event. The caller is responsible for disconnecting the delegate from the event handler when finished.

WalletExistsAsync ( ) : Task

Private Methods

Méthode Description
ReadFileAsync ( string filePath ) : Task
WalletClient ( Grpc.Core.Channel channel ) : Google.Protobuf

Method Details

AccountsAsync() public méthode

public AccountsAsync ( ) : Task
Résultat Task

CancelRequests() public méthode

public CancelRequests ( ) : void
Résultat void

CloseWallet() public méthode

public CloseWallet ( ) : Task
Résultat Task

ConnectAsync() public static méthode

public static ConnectAsync ( string networkAddress, string rootCertificate ) : Task
networkAddress string
rootCertificate string
Résultat Task

CreateWallet() public méthode

public CreateWallet ( string pubPassphrase, string privPassphrase, byte seed ) : Task
pubPassphrase string
privPassphrase string
seed byte
Résultat Task

Disconnect() public méthode

public Disconnect ( ) : Task
Résultat Task

DiscoverAccountsAsync() public méthode

public DiscoverAccountsAsync ( string passphrase ) : Task
passphrase string
Résultat Task

DiscoverAddressesAsync() public méthode

public DiscoverAddressesAsync ( ) : Task
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FetchHeadersAsync() public méthode

public FetchHeadersAsync ( ) : BlockIdentity?>>.Task
Résultat BlockIdentity?>>.Task

FundTransactionAsync() public méthode

public FundTransactionAsync ( Account account, Amount targetAmount, int requiredConfirmations ) : Amount>>.Task
account Account
targetAmount Paymetheus.Decred.Amount
requiredConfirmations int
Résultat Amount>>.Task

GetTransactionsAsync() public méthode

public GetTransactionsAsync ( int minRecentTransactions, int minRecentBlocks ) : Task
minRecentTransactions int
minRecentBlocks int
Résultat Task

ImportPrivateKeyAsync() public méthode

public ImportPrivateKeyAsync ( Account account, string privateKeyWif, bool rescan, string passphrase ) : Task
account Account
privateKeyWif string
rescan bool
passphrase string
Résultat Task

ImportScriptAsync() public méthode

public ImportScriptAsync ( byte scriptBytes, bool rescan, int scanFrom, string passphrase ) : Task
scriptBytes byte
rescan bool
scanFrom int
passphrase string
Résultat Task

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

LoadActiveDataFiltersAsync() public méthode

public LoadActiveDataFiltersAsync ( ) : Task
Résultat Task

NetworkAsync() public méthode

public NetworkAsync ( ) : Task
Résultat Task

NextAccountAsync() public méthode

public NextAccountAsync ( string passphrase, string accountName ) : Task
passphrase string
accountName string
Résultat Task

NextExternalAddressAsync() public méthode

Queries the RPC server for the next external BIP0044 address for an account
public NextExternalAddressAsync ( Account account ) : string>>.Task
account Account Account to create address for
Résultat string>>.Task

NextInternalAddressAsync() public méthode

public NextInternalAddressAsync ( Account account ) : Task
account Account
Résultat Task

OpenWallet() public méthode

public OpenWallet ( string pubPassphrase ) : Task
pubPassphrase string
Résultat Task

PublishTransactionAsync() public méthode

public PublishTransactionAsync ( byte signedTransaction ) : Task
signedTransaction byte
Résultat Task

PurchaseTicketsAsync() public méthode

public PurchaseTicketsAsync ( Account account, Amount spendLimit, int reqConfs, Paymetheus.Decred.Wallet.Address ticketAddress, uint number, Paymetheus.Decred.Wallet.Address poolAddress, double poolFees, uint expiry, Amount txFee, Amount ticketFee, string passphrase ) : Task>
account Account
spendLimit Paymetheus.Decred.Amount
reqConfs int
ticketAddress Paymetheus.Decred.Wallet.Address
number uint
poolAddress Paymetheus.Decred.Wallet.Address
poolFees double
expiry uint
txFee Paymetheus.Decred.Amount
ticketFee Paymetheus.Decred.Amount
passphrase string
Résultat Task>

RenameAccountAsync() public méthode

public RenameAccountAsync ( Account account, string newAccountName ) : Task
account Account
newAccountName string
Résultat Task

RescanFromBlockHeightAsync() public méthode

public RescanFromBlockHeightAsync ( int beginHeight, Action progressCallback = null ) : Task
beginHeight int
progressCallback Action
Résultat Task

SelectUnspentOutputs() public méthode

public SelectUnspentOutputs ( Account account, Amount targetAmount, int requiredConfirmations ) : Amount>>.Task
account Account
targetAmount Paymetheus.Decred.Amount
requiredConfirmations int
Résultat Amount>>.Task

SignTransactionAsync() public méthode

public SignTransactionAsync ( string passphrase, Paymetheus.Decred.Transaction tx ) : bool>>.Task
passphrase string
tx Paymetheus.Decred.Transaction
Résultat bool>>.Task

StakeDifficultyAsync() public méthode

public StakeDifficultyAsync ( ) : Task
Résultat Task

StakeInfoAsync() public méthode

public StakeInfoAsync ( ) : Task
Résultat Task

StartConsensusRpc() public méthode

public StartConsensusRpc ( ConsensusServerRpcOptions options ) : Task
options ConsensusServerRpcOptions
Résultat Task

SubscribeToBlockNotificationsAsync() public méthode

public SubscribeToBlockNotificationsAsync ( ) : Task
Résultat Task

Synchronize() public méthode

Begins synchronization of the client with the remote wallet process. A delegate must be passed to be connected to the wallet's ChangesProcessed event to avoid a race where additional notifications are processed in the sync task before the caller can connect the event. The caller is responsible for disconnecting the delegate from the event handler when finished.
public Synchronize ( EventHandler walletEventHandler ) : Task>>.Task
walletEventHandler EventHandler Event handler for changes to wallet as new transactions are processed.
Résultat Task>>.Task

WalletExistsAsync() public méthode

public WalletExistsAsync ( ) : Task
Résultat Task