C# Class BitcoinNET.RPCClient.BitcoinRPC

Show file Open project: mb300sd/Bitcoin.NET Class Usage Examples

Public Methods

Method Description
AddMultiSigAddress ( int NRequired, IEnumerable Keys, string Account = "" ) : string
AddNode ( string Node, string Mode ) : void
BackupWallet ( string Destination ) : void
CreateMultiSig ( int NRequired, IEnumerable Keys ) : CreateMultiSigResponse
CreateRawTransaction ( IEnumerable Inputs, decimal>.IDictionary Outputs ) : string
DecodeRawTransaction ( string Transaction ) : DecodeRawTransactionResponse
DumpPrivKey ( string BitcoinAddress ) : string
EncryptWallet ( string Passphrase ) : void
GetAccount ( string BitcoinAddress ) : string
GetAccountAddress ( string Account ) : string
GetAddedNodeInfo ( bool Dns, string Node ) : IEnumerable
GetAddressesByAccount ( string Account ) : IEnumerable
GetBalance ( string Account = null, int MinConf = 1 ) : decimal
GetBlock ( string Hash ) : GetBlockResponse
GetBlockCount ( ) : int
GetBlockHash ( long Index ) : string
GetBlockTemplate ( ) : void
GetConnectionCount ( ) : int
GetDifficulty ( ) : decimal
GetGenerate ( ) : bool
GetHashesPerSec ( ) : decimal
GetInfo ( ) : GetInfoResponse
GetMiningInfo ( ) : GetMiningInfoResponse
GetNewAddress ( string Account = "" ) : string
GetPeerInfo ( ) : GetPeerInfoResponse
GetRawMemPool ( ) : IEnumerable
GetRawTransaction ( string TxId, int Verbose ) : GetRawTransactionResponse
GetReceivedByAccount ( string Account, int MinConf = 1 ) : decimal
GetReceivedByAddress ( string BitcoinAddress, int MinConf = 1 ) : decimal
GetTransaction ( string TxID ) : GetTransactionResponse
GetTxOut ( string TxID, int N, bool IncludeMemPool = true ) : GetTxOutResponse
GetTxOutSetInfo ( ) : GetTxOutSetInfoResponse
GetWork ( ) : GetWorkResponse
GetWork ( string Data ) : bool
Help ( string Command = "" ) : string
ImportPrivKey ( string BitcoinPrivKey, string Label = "", bool Rescan = true ) : void
KeyPoolRefill ( ) : void
ListAccounts ( int MinConf = 1 ) : decimal>.IDictionary
ListAddressGroupings ( bool showEmptyGroups = true, bool showEmptyAddresses = true ) : IEnumerable>
ListLockUnspent ( ) : void
ListReceivedByAccount ( int MinConf = 1, bool IncludeEmpty = false ) : IEnumerable
ListReceivedByAddress ( int MinConf = 1, bool IncludeEmpty = false ) : IEnumerable
ListSinceBlock ( string BlockHash = null, int TargetConfirmations = 1 ) : ListSinceBlockResponse
ListTransactions ( string Account = "*", int Count = 10, int From ) : IEnumerable
ListUnspent ( ) : void
LockUnspent ( ) : void
Move ( string FromAccount, string ToAccount, decimal Amount, int MinConf = 1, string Comment = "" ) : bool
SendFrom ( string FromAccount, string ToBitcoinAddress, decimal Amount, int MinConf = 1, string Comment = "", string CommentTo = "" ) : string
SendMany ( string FromAccount, decimal>.IDictionary ToBitcoinAddresses, int MinConf = 1, string Comment = "" ) : string
SendRawTransaction ( string Tx ) : string
SendToAddress ( string BitcoinAddress, decimal Amount, string Comment = "", string CommentTo = "" ) : string
SetAccount ( string BitcoinAddress, string Account ) : void
SetGenerate ( bool Generate, int GenProcLimit = 1 ) : void
SetTxFee ( decimal Amount ) : bool
SignMessage ( string BitcoinAddress, string Message ) : string
SignRawTransaction ( ) : void
Stop ( ) : void
SubmitBlock ( ) : void
ValidateAddress ( string Address ) : ValidateAddressResponse
VerifyMessage ( string BitcoinAddress, string Signature, string Message ) : bool
WalletLock ( ) : void
WalletPassphrase ( string Passphrase, int Timeout ) : void
WalletPassphraseChange ( string OldPassphrase, string NewPassphrase ) : void

Method Details

AddMultiSigAddress() public method

public AddMultiSigAddress ( int NRequired, IEnumerable Keys, string Account = "" ) : string
NRequired int
Keys IEnumerable
Account string
return string

AddNode() public method

public AddNode ( string Node, string Mode ) : void
Node string
Mode string
return void

BackupWallet() public method

public BackupWallet ( string Destination ) : void
Destination string
return void

CreateMultiSig() public method

public CreateMultiSig ( int NRequired, IEnumerable Keys ) : CreateMultiSigResponse
NRequired int
Keys IEnumerable
return CreateMultiSigResponse

CreateRawTransaction() public method

public CreateRawTransaction ( IEnumerable Inputs, decimal>.IDictionary Outputs ) : string
Inputs IEnumerable
Outputs decimal>.IDictionary
return string

DecodeRawTransaction() public method

public DecodeRawTransaction ( string Transaction ) : DecodeRawTransactionResponse
Transaction string
return DecodeRawTransactionResponse

DumpPrivKey() public method

public DumpPrivKey ( string BitcoinAddress ) : string
BitcoinAddress string
return string

EncryptWallet() public method

public EncryptWallet ( string Passphrase ) : void
Passphrase string
return void

GetAccount() public method

public GetAccount ( string BitcoinAddress ) : string
BitcoinAddress string
return string

GetAccountAddress() public method

public GetAccountAddress ( string Account ) : string
Account string
return string

GetAddedNodeInfo() public method

public GetAddedNodeInfo ( bool Dns, string Node ) : IEnumerable
Dns bool
Node string
return IEnumerable

GetAddressesByAccount() public method

public GetAddressesByAccount ( string Account ) : IEnumerable
Account string
return IEnumerable

GetBalance() public method

public GetBalance ( string Account = null, int MinConf = 1 ) : decimal
Account string
MinConf int
return decimal

GetBlock() public method

public GetBlock ( string Hash ) : GetBlockResponse
Hash string
return GetBlockResponse

GetBlockCount() public method

public GetBlockCount ( ) : int
return int

GetBlockHash() public method

public GetBlockHash ( long Index ) : string
Index long
return string

GetBlockTemplate() public method

public GetBlockTemplate ( ) : void
return void

GetConnectionCount() public method

public GetConnectionCount ( ) : int
return int

GetDifficulty() public method

public GetDifficulty ( ) : decimal
return decimal

GetGenerate() public method

public GetGenerate ( ) : bool
return bool

GetHashesPerSec() public method

public GetHashesPerSec ( ) : decimal
return decimal

GetInfo() public method

public GetInfo ( ) : GetInfoResponse
return GetInfoResponse

GetMiningInfo() public method

public GetMiningInfo ( ) : GetMiningInfoResponse
return GetMiningInfoResponse

GetNewAddress() public method

public GetNewAddress ( string Account = "" ) : string
Account string
return string

GetPeerInfo() public method

public GetPeerInfo ( ) : GetPeerInfoResponse
return GetPeerInfoResponse

GetRawMemPool() public method

public GetRawMemPool ( ) : IEnumerable
return IEnumerable

GetRawTransaction() public method

public GetRawTransaction ( string TxId, int Verbose ) : GetRawTransactionResponse
TxId string
Verbose int
return GetRawTransactionResponse

GetReceivedByAccount() public method

public GetReceivedByAccount ( string Account, int MinConf = 1 ) : decimal
Account string
MinConf int
return decimal

GetReceivedByAddress() public method

public GetReceivedByAddress ( string BitcoinAddress, int MinConf = 1 ) : decimal
BitcoinAddress string
MinConf int
return decimal

GetTransaction() public method

public GetTransaction ( string TxID ) : GetTransactionResponse
TxID string
return GetTransactionResponse

GetTxOut() public method

public GetTxOut ( string TxID, int N, bool IncludeMemPool = true ) : GetTxOutResponse
TxID string
N int
IncludeMemPool bool
return GetTxOutResponse

GetTxOutSetInfo() public method

public GetTxOutSetInfo ( ) : GetTxOutSetInfoResponse
return GetTxOutSetInfoResponse

GetWork() public method

public GetWork ( ) : GetWorkResponse
return GetWorkResponse

GetWork() public method

public GetWork ( string Data ) : bool
Data string
return bool

Help() public method

public Help ( string Command = "" ) : string
Command string
return string

ImportPrivKey() public method

public ImportPrivKey ( string BitcoinPrivKey, string Label = "", bool Rescan = true ) : void
BitcoinPrivKey string
Label string
Rescan bool
return void

KeyPoolRefill() public method

public KeyPoolRefill ( ) : void
return void

ListAccounts() public method

public ListAccounts ( int MinConf = 1 ) : decimal>.IDictionary
MinConf int
return decimal>.IDictionary

ListAddressGroupings() public method

public ListAddressGroupings ( bool showEmptyGroups = true, bool showEmptyAddresses = true ) : IEnumerable>
showEmptyGroups bool
showEmptyAddresses bool
return IEnumerable>

ListLockUnspent() public method

public ListLockUnspent ( ) : void
return void

ListReceivedByAccount() public method

public ListReceivedByAccount ( int MinConf = 1, bool IncludeEmpty = false ) : IEnumerable
MinConf int
IncludeEmpty bool
return IEnumerable

ListReceivedByAddress() public method

public ListReceivedByAddress ( int MinConf = 1, bool IncludeEmpty = false ) : IEnumerable
MinConf int
IncludeEmpty bool
return IEnumerable

ListSinceBlock() public method

public ListSinceBlock ( string BlockHash = null, int TargetConfirmations = 1 ) : ListSinceBlockResponse
BlockHash string
TargetConfirmations int
return ListSinceBlockResponse

ListTransactions() public method

public ListTransactions ( string Account = "*", int Count = 10, int From ) : IEnumerable
Account string
Count int
From int
return IEnumerable

ListUnspent() public method

public ListUnspent ( ) : void
return void

LockUnspent() public method

public LockUnspent ( ) : void
return void

Move() public method

public Move ( string FromAccount, string ToAccount, decimal Amount, int MinConf = 1, string Comment = "" ) : bool
FromAccount string
ToAccount string
Amount decimal
MinConf int
Comment string
return bool

SendFrom() public method

public SendFrom ( string FromAccount, string ToBitcoinAddress, decimal Amount, int MinConf = 1, string Comment = "", string CommentTo = "" ) : string
FromAccount string
ToBitcoinAddress string
Amount decimal
MinConf int
Comment string
CommentTo string
return string

SendMany() public method

public SendMany ( string FromAccount, decimal>.IDictionary ToBitcoinAddresses, int MinConf = 1, string Comment = "" ) : string
FromAccount string
ToBitcoinAddresses decimal>.IDictionary
MinConf int
Comment string
return string

SendRawTransaction() public method

public SendRawTransaction ( string Tx ) : string
Tx string
return string

SendToAddress() public method

public SendToAddress ( string BitcoinAddress, decimal Amount, string Comment = "", string CommentTo = "" ) : string
BitcoinAddress string
Amount decimal
Comment string
CommentTo string
return string

SetAccount() public method

public SetAccount ( string BitcoinAddress, string Account ) : void
BitcoinAddress string
Account string
return void

SetGenerate() public method

public SetGenerate ( bool Generate, int GenProcLimit = 1 ) : void
Generate bool
GenProcLimit int
return void

SetTxFee() public method

public SetTxFee ( decimal Amount ) : bool
Amount decimal
return bool

SignMessage() public method

public SignMessage ( string BitcoinAddress, string Message ) : string
BitcoinAddress string
Message string
return string

SignRawTransaction() public method

public SignRawTransaction ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

SubmitBlock() public method

public SubmitBlock ( ) : void
return void

ValidateAddress() public method

public ValidateAddress ( string Address ) : ValidateAddressResponse
Address string
return ValidateAddressResponse

VerifyMessage() public method

public VerifyMessage ( string BitcoinAddress, string Signature, string Message ) : bool
BitcoinAddress string
Signature string
Message string
return bool

WalletLock() public method

public WalletLock ( ) : void
return void

WalletPassphrase() public method

public WalletPassphrase ( string Passphrase, int Timeout ) : void
Passphrase string
Timeout int
return void

WalletPassphraseChange() public method

public WalletPassphraseChange ( string OldPassphrase, string NewPassphrase ) : void
OldPassphrase string
NewPassphrase string
return void