C# Класс BitcoinLib.Services.CoinService

Показать файл Открыть проект

Открытые методы

Метод Описание
AddMultiSigAddress ( int nRquired, List publicKeys, string account ) : string
AddNode ( string node, NodeAction action ) : void
BackupWallet ( string destination ) : void
CoinService ( ) : System
CoinService ( bool useTestnet ) : System
CoinService ( string daemonUrl, string rpcUsername, string rpcPassword, string walletPassword ) : System
CoinService ( string daemonUrl, string rpcUsername, string rpcPassword, string walletPassword, short rpcRequestTimeoutInSeconds ) : System
CreateMultiSig ( int nRquired, List publicKeys ) : CreateMultiSigResponse
CreateRawTransaction ( CreateRawTransactionRequest rawTransaction ) : string
DecodeRawTransaction ( string rawTransactionHexString ) : DecodeRawTransactionResponse
DecodeScript ( string hexString ) : DecodeScriptResponse
DumpPrivKey ( string bitcoinAddress ) : string
DumpWallet ( string filename ) : void
EstimateFee ( ushort nBlocks ) : decimal
EstimatePriority ( ushort nBlocks ) : decimal
GetAccount ( string bitcoinAddress ) : string
GetAccountAddress ( string account ) : string
GetAddedNodeInfo ( string dns, string node ) : GetAddedNodeInfoResponse
GetAddressBalance ( string inWalletAddress, int minConf, bool validateAddressBeforeProcessing ) : decimal
GetAddressesByAccount ( string account ) : List
GetBalance ( string account, int minConf, bool includeWatchonly ) : decimal
GetBestBlockHash ( ) : string
GetBlock ( string hash, bool verbose ) : GetBlockResponse
GetBlockCount ( ) : uint
GetBlockHash ( long index ) : string
GetBlockTemplate ( ) : GetBlockTemplateResponse
GetBlockchainInfo ( ) : GetBlockchainInfoResponse
GetChainTips ( ) : List
GetConnectionCount ( ) : int
GetDifficulty ( ) : double
GetGenerate ( ) : bool
GetImmutableTxId ( string txId, bool getSha256Hash ) : string
GetMemPoolInfo ( ) : GetMemPoolInfoResponse
GetMiningInfo ( ) : GetMiningInfoResponse
GetMyPublicAndPrivateKeyPairs ( ) : string>.Dictionary
GetNetTotals ( ) : GetNetTotalsResponse
GetNetworkHashPs ( uint blocks, long height ) : ulong
GetNetworkInfo ( ) : GetNetworkInfoResponse
GetNewAddress ( string account ) : string
GetPeerInfo ( ) : List
GetPublicTransaction ( string txId ) : DecodeRawTransactionResponse
GetRawChangeAddress ( ) : string
GetRawMemPool ( bool verbose ) : GetRawMemPoolResponse
GetRawTransaction ( string txId, int verbose ) : GetRawTransactionResponse
GetRawTxFromImmutableTxId ( string rigidTxId, int listTransactionsCount, int listTransactionsFrom, bool getRawTransactionVersbose, bool rigidTxIdIsSha256 ) : GetRawTransactionResponse
GetReceivedByAccount ( string account, int minConf ) : decimal
GetReceivedByAddress ( string bitcoinAddress, int minConf ) : decimal
GetTransaction ( string txId, bool includeWatchonly ) : GetTransactionResponse
GetTransactionPriority ( CreateRawTransactionRequest transaction ) : decimal
GetTransactionPriority ( IList transactionInputs, int numberOfOutputs ) : decimal
GetTransactionSizeInBytes ( CreateRawTransactionRequest transaction ) : int
GetTransactionSizeInBytes ( int numberOfInputs, int numberOfOutputs ) : int
GetTxOut ( string txId, int n, bool includeMemPool ) : GetTransactionResponse
GetTxOutSetInfo ( ) : GetTxOutSetInfoResponse
GetUnconfirmedBalance ( ) : decimal
GetWalletInfo ( ) : GetWalletInfoResponse
Help ( string command ) : string
ImportAddress ( string address, string label, bool rescan ) : void
ImportPrivKey ( string privateKey, string label, bool rescan ) : string
ImportWallet ( string filename ) : void
IsInWalletTransaction ( string txId ) : bool
IsTransactionFree ( CreateRawTransactionRequest transaction ) : bool
IsTransactionFree ( IList transactionInputs, int numberOfOutputs, decimal minimumAmountAmongOutputs ) : bool
IsWalletEncrypted ( ) : bool
KeyPoolRefill ( uint newSize ) : string
ListAccounts ( int minConf, bool includeWatchonly ) : decimal>.Dictionary
ListAddressGroupings ( ) : List>
ListLockUnspent ( ) : string
ListReceivedByAccount ( int minConf, bool includeEmpty, bool includeWatchonly ) : List
ListReceivedByAddress ( int minConf, bool includeEmpty, bool includeWatchonly ) : List
ListSinceBlock ( string blockHash, int targetConfirmations, bool includeWatchonly ) : ListSinceBlockResponse
ListTransactions ( string account, int count, int from, bool includeWatchonly ) : List
ListUnspent ( int minConf, int maxConf, List addresses ) : List
LockUnspent ( bool unlock, IList listUnspentResponses ) : bool
Move ( string fromAccount, string toAccount, decimal amount, int minConf, string comment ) : bool
Ping ( ) : void
PrioritiseTransaction ( string txId, decimal priorityDelta, decimal feeDelta ) : bool
SendFrom ( string fromAccount, string toBitcoinAddress, decimal amount, int minConf, string comment, string commentTo ) : string
SendMany ( string fromAccount, decimal>.Dictionary toBitcoinAddress, int minConf, string comment ) : string
SendRawTransaction ( string rawTransactionHexString, bool allowHighFees ) : string
SendToAddress ( string bitcoinAddress, decimal amount, string comment, string commentTo ) : string
SetAccount ( string bitcoinAddress, string account ) : string
SetGenerate ( bool generate, short generatingProcessorsLimit ) : string
SetTxFee ( decimal amount ) : string
SignMessage ( string bitcoinAddress, string message ) : string
SignRawTransaction ( SignRawTransactionRequest request ) : SignRawTransactionResponse
Stop ( ) : string
SubmitBlock ( string hexData ) : string
ToString ( ) : string
ValidateAddress ( string bitcoinAddress ) : ValidateAddressResponse
VerifyChain ( ushort checkLevel, uint numBlocks ) : bool
VerifyMessage ( string bitcoinAddress, string signature, string message ) : bool
WalletLock ( ) : string
WalletPassphrase ( string passphrase, int timeoutInSeconds ) : string
WalletPassphraseChange ( string oldPassphrase, string newPassphrase ) : string

Приватные методы

Метод Описание
GetInfo ( ) : GetInfoResponse
GetMinimumNonZeroTransactionFeeEstimate ( short numberOfInputs = 1, short numberOfOutputs = 1 ) : decimal
GetTransactionFee ( CreateRawTransactionRequest transaction, bool checkIfTransactionQualifiesForFreeRelay, bool enforceMinimumTransactionFeePolicy ) : decimal
GetTransactionSenderAddress ( string txId ) : string

Описание методов

AddMultiSigAddress() публичный Метод

public AddMultiSigAddress ( int nRquired, List publicKeys, string account ) : string
nRquired int
publicKeys List
account string
Результат string

AddNode() публичный Метод

public AddNode ( string node, NodeAction action ) : void
node string
action NodeAction
Результат void

BackupWallet() публичный Метод

public BackupWallet ( string destination ) : void
destination string
Результат void

CoinService() публичный Метод

public CoinService ( ) : System
Результат System

CoinService() публичный Метод

public CoinService ( bool useTestnet ) : System
useTestnet bool
Результат System

CoinService() публичный Метод

public CoinService ( string daemonUrl, string rpcUsername, string rpcPassword, string walletPassword ) : System
daemonUrl string
rpcUsername string
rpcPassword string
walletPassword string
Результат System

CoinService() публичный Метод

public CoinService ( string daemonUrl, string rpcUsername, string rpcPassword, string walletPassword, short rpcRequestTimeoutInSeconds ) : System
daemonUrl string
rpcUsername string
rpcPassword string
walletPassword string
rpcRequestTimeoutInSeconds short
Результат System

CreateMultiSig() публичный Метод

public CreateMultiSig ( int nRquired, List publicKeys ) : CreateMultiSigResponse
nRquired int
publicKeys List
Результат CreateMultiSigResponse

CreateRawTransaction() публичный Метод

public CreateRawTransaction ( CreateRawTransactionRequest rawTransaction ) : string
rawTransaction CreateRawTransactionRequest
Результат string

DecodeRawTransaction() публичный Метод

public DecodeRawTransaction ( string rawTransactionHexString ) : DecodeRawTransactionResponse
rawTransactionHexString string
Результат DecodeRawTransactionResponse

DecodeScript() публичный Метод

public DecodeScript ( string hexString ) : DecodeScriptResponse
hexString string
Результат DecodeScriptResponse

DumpPrivKey() публичный Метод

public DumpPrivKey ( string bitcoinAddress ) : string
bitcoinAddress string
Результат string

DumpWallet() публичный Метод

public DumpWallet ( string filename ) : void
filename string
Результат void

EstimateFee() публичный Метод

public EstimateFee ( ushort nBlocks ) : decimal
nBlocks ushort
Результат decimal

EstimatePriority() публичный Метод

public EstimatePriority ( ushort nBlocks ) : decimal
nBlocks ushort
Результат decimal

GetAccount() публичный Метод

public GetAccount ( string bitcoinAddress ) : string
bitcoinAddress string
Результат string

GetAccountAddress() публичный Метод

public GetAccountAddress ( string account ) : string
account string
Результат string

GetAddedNodeInfo() публичный Метод

public GetAddedNodeInfo ( string dns, string node ) : GetAddedNodeInfoResponse
dns string
node string
Результат GetAddedNodeInfoResponse

GetAddressBalance() публичный Метод

public GetAddressBalance ( string inWalletAddress, int minConf, bool validateAddressBeforeProcessing ) : decimal
inWalletAddress string
minConf int
validateAddressBeforeProcessing bool
Результат decimal

GetAddressesByAccount() публичный Метод

public GetAddressesByAccount ( string account ) : List
account string
Результат List

GetBalance() публичный Метод

public GetBalance ( string account, int minConf, bool includeWatchonly ) : decimal
account string
minConf int
includeWatchonly bool
Результат decimal

GetBestBlockHash() публичный Метод

public GetBestBlockHash ( ) : string
Результат string

GetBlock() публичный Метод

public GetBlock ( string hash, bool verbose ) : GetBlockResponse
hash string
verbose bool
Результат GetBlockResponse

GetBlockCount() публичный Метод

public GetBlockCount ( ) : uint
Результат uint

GetBlockHash() публичный Метод

public GetBlockHash ( long index ) : string
index long
Результат string

GetBlockTemplate() публичный Метод

public GetBlockTemplate ( ) : GetBlockTemplateResponse
Результат GetBlockTemplateResponse

GetBlockchainInfo() публичный Метод

public GetBlockchainInfo ( ) : GetBlockchainInfoResponse
Результат GetBlockchainInfoResponse

GetChainTips() публичный Метод

public GetChainTips ( ) : List
Результат List

GetConnectionCount() публичный Метод

public GetConnectionCount ( ) : int
Результат int

GetDifficulty() публичный Метод

public GetDifficulty ( ) : double
Результат double

GetGenerate() публичный Метод

public GetGenerate ( ) : bool
Результат bool

GetImmutableTxId() публичный Метод

public GetImmutableTxId ( string txId, bool getSha256Hash ) : string
txId string
getSha256Hash bool
Результат string

GetMemPoolInfo() публичный Метод

public GetMemPoolInfo ( ) : GetMemPoolInfoResponse
Результат GetMemPoolInfoResponse

GetMiningInfo() публичный Метод

public GetMiningInfo ( ) : GetMiningInfoResponse
Результат GetMiningInfoResponse

GetMyPublicAndPrivateKeyPairs() публичный Метод

public GetMyPublicAndPrivateKeyPairs ( ) : string>.Dictionary
Результат string>.Dictionary

GetNetTotals() публичный Метод

public GetNetTotals ( ) : GetNetTotalsResponse
Результат GetNetTotalsResponse

GetNetworkHashPs() публичный Метод

public GetNetworkHashPs ( uint blocks, long height ) : ulong
blocks uint
height long
Результат ulong

GetNetworkInfo() публичный Метод

public GetNetworkInfo ( ) : GetNetworkInfoResponse
Результат GetNetworkInfoResponse

GetNewAddress() публичный Метод

public GetNewAddress ( string account ) : string
account string
Результат string

GetPeerInfo() публичный Метод

public GetPeerInfo ( ) : List
Результат List

GetPublicTransaction() публичный Метод

public GetPublicTransaction ( string txId ) : DecodeRawTransactionResponse
txId string
Результат DecodeRawTransactionResponse

GetRawChangeAddress() публичный Метод

public GetRawChangeAddress ( ) : string
Результат string

GetRawMemPool() публичный Метод

public GetRawMemPool ( bool verbose ) : GetRawMemPoolResponse
verbose bool
Результат GetRawMemPoolResponse

GetRawTransaction() публичный Метод

public GetRawTransaction ( string txId, int verbose ) : GetRawTransactionResponse
txId string
verbose int
Результат GetRawTransactionResponse

GetRawTxFromImmutableTxId() публичный Метод

public GetRawTxFromImmutableTxId ( string rigidTxId, int listTransactionsCount, int listTransactionsFrom, bool getRawTransactionVersbose, bool rigidTxIdIsSha256 ) : GetRawTransactionResponse
rigidTxId string
listTransactionsCount int
listTransactionsFrom int
getRawTransactionVersbose bool
rigidTxIdIsSha256 bool
Результат GetRawTransactionResponse

GetReceivedByAccount() публичный Метод

public GetReceivedByAccount ( string account, int minConf ) : decimal
account string
minConf int
Результат decimal

GetReceivedByAddress() публичный Метод

public GetReceivedByAddress ( string bitcoinAddress, int minConf ) : decimal
bitcoinAddress string
minConf int
Результат decimal

GetTransaction() публичный Метод

public GetTransaction ( string txId, bool includeWatchonly ) : GetTransactionResponse
txId string
includeWatchonly bool
Результат GetTransactionResponse

GetTransactionPriority() публичный Метод

public GetTransactionPriority ( CreateRawTransactionRequest transaction ) : decimal
transaction CreateRawTransactionRequest
Результат decimal

GetTransactionPriority() публичный Метод

public GetTransactionPriority ( IList transactionInputs, int numberOfOutputs ) : decimal
transactionInputs IList
numberOfOutputs int
Результат decimal

GetTransactionSizeInBytes() публичный Метод

public GetTransactionSizeInBytes ( CreateRawTransactionRequest transaction ) : int
transaction CreateRawTransactionRequest
Результат int

GetTransactionSizeInBytes() публичный Метод

public GetTransactionSizeInBytes ( int numberOfInputs, int numberOfOutputs ) : int
numberOfInputs int
numberOfOutputs int
Результат int

GetTxOut() публичный Метод

public GetTxOut ( string txId, int n, bool includeMemPool ) : GetTransactionResponse
txId string
n int
includeMemPool bool
Результат GetTransactionResponse

GetTxOutSetInfo() публичный Метод

public GetTxOutSetInfo ( ) : GetTxOutSetInfoResponse
Результат GetTxOutSetInfoResponse

GetUnconfirmedBalance() публичный Метод

public GetUnconfirmedBalance ( ) : decimal
Результат decimal

GetWalletInfo() публичный Метод

public GetWalletInfo ( ) : GetWalletInfoResponse
Результат GetWalletInfoResponse

Help() публичный Метод

public Help ( string command ) : string
command string
Результат string

ImportAddress() публичный Метод

public ImportAddress ( string address, string label, bool rescan ) : void
address string
label string
rescan bool
Результат void

ImportPrivKey() публичный Метод

public ImportPrivKey ( string privateKey, string label, bool rescan ) : string
privateKey string
label string
rescan bool
Результат string

ImportWallet() публичный Метод

public ImportWallet ( string filename ) : void
filename string
Результат void

IsInWalletTransaction() публичный Метод

public IsInWalletTransaction ( string txId ) : bool
txId string
Результат bool

IsTransactionFree() публичный Метод

public IsTransactionFree ( CreateRawTransactionRequest transaction ) : bool
transaction CreateRawTransactionRequest
Результат bool

IsTransactionFree() публичный Метод

public IsTransactionFree ( IList transactionInputs, int numberOfOutputs, decimal minimumAmountAmongOutputs ) : bool
transactionInputs IList
numberOfOutputs int
minimumAmountAmongOutputs decimal
Результат bool

IsWalletEncrypted() публичный Метод

public IsWalletEncrypted ( ) : bool
Результат bool

KeyPoolRefill() публичный Метод

public KeyPoolRefill ( uint newSize ) : string
newSize uint
Результат string

ListAccounts() публичный Метод

public ListAccounts ( int minConf, bool includeWatchonly ) : decimal>.Dictionary
minConf int
includeWatchonly bool
Результат decimal>.Dictionary

ListAddressGroupings() публичный Метод

public ListAddressGroupings ( ) : List>
Результат List>

ListLockUnspent() публичный Метод

public ListLockUnspent ( ) : string
Результат string

ListReceivedByAccount() публичный Метод

public ListReceivedByAccount ( int minConf, bool includeEmpty, bool includeWatchonly ) : List
minConf int
includeEmpty bool
includeWatchonly bool
Результат List

ListReceivedByAddress() публичный Метод

public ListReceivedByAddress ( int minConf, bool includeEmpty, bool includeWatchonly ) : List
minConf int
includeEmpty bool
includeWatchonly bool
Результат List

ListSinceBlock() публичный Метод

public ListSinceBlock ( string blockHash, int targetConfirmations, bool includeWatchonly ) : ListSinceBlockResponse
blockHash string
targetConfirmations int
includeWatchonly bool
Результат ListSinceBlockResponse

ListTransactions() публичный Метод

public ListTransactions ( string account, int count, int from, bool includeWatchonly ) : List
account string
count int
from int
includeWatchonly bool
Результат List

ListUnspent() публичный Метод

public ListUnspent ( int minConf, int maxConf, List addresses ) : List
minConf int
maxConf int
addresses List
Результат List

LockUnspent() публичный Метод

public LockUnspent ( bool unlock, IList listUnspentResponses ) : bool
unlock bool
listUnspentResponses IList
Результат bool

Move() публичный Метод

public Move ( string fromAccount, string toAccount, decimal amount, int minConf, string comment ) : bool
fromAccount string
toAccount string
amount decimal
minConf int
comment string
Результат bool

Ping() публичный Метод

public Ping ( ) : void
Результат void

PrioritiseTransaction() публичный Метод

public PrioritiseTransaction ( string txId, decimal priorityDelta, decimal feeDelta ) : bool
txId string
priorityDelta decimal
feeDelta decimal
Результат bool

SendFrom() публичный Метод

public SendFrom ( string fromAccount, string toBitcoinAddress, decimal amount, int minConf, string comment, string commentTo ) : string
fromAccount string
toBitcoinAddress string
amount decimal
minConf int
comment string
commentTo string
Результат string

SendMany() публичный Метод

public SendMany ( string fromAccount, decimal>.Dictionary toBitcoinAddress, int minConf, string comment ) : string
fromAccount string
toBitcoinAddress decimal>.Dictionary
minConf int
comment string
Результат string

SendRawTransaction() публичный Метод

public SendRawTransaction ( string rawTransactionHexString, bool allowHighFees ) : string
rawTransactionHexString string
allowHighFees bool
Результат string

SendToAddress() публичный Метод

public SendToAddress ( string bitcoinAddress, decimal amount, string comment, string commentTo ) : string
bitcoinAddress string
amount decimal
comment string
commentTo string
Результат string

SetAccount() публичный Метод

public SetAccount ( string bitcoinAddress, string account ) : string
bitcoinAddress string
account string
Результат string

SetGenerate() публичный Метод

public SetGenerate ( bool generate, short generatingProcessorsLimit ) : string
generate bool
generatingProcessorsLimit short
Результат string

SetTxFee() публичный Метод

public SetTxFee ( decimal amount ) : string
amount decimal
Результат string

SignMessage() публичный Метод

public SignMessage ( string bitcoinAddress, string message ) : string
bitcoinAddress string
message string
Результат string

SignRawTransaction() публичный Метод

public SignRawTransaction ( SignRawTransactionRequest request ) : SignRawTransactionResponse
request SignRawTransactionRequest
Результат SignRawTransactionResponse

Stop() публичный Метод

public Stop ( ) : string
Результат string

SubmitBlock() публичный Метод

public SubmitBlock ( string hexData ) : string
hexData string
Результат string

ToString() публичный Метод

public ToString ( ) : string
Результат string

ValidateAddress() публичный Метод

public ValidateAddress ( string bitcoinAddress ) : ValidateAddressResponse
bitcoinAddress string
Результат ValidateAddressResponse

VerifyChain() публичный Метод

public VerifyChain ( ushort checkLevel, uint numBlocks ) : bool
checkLevel ushort
numBlocks uint
Результат bool

VerifyMessage() публичный Метод

public VerifyMessage ( string bitcoinAddress, string signature, string message ) : bool
bitcoinAddress string
signature string
message string
Результат bool

WalletLock() публичный Метод

public WalletLock ( ) : string
Результат string

WalletPassphrase() публичный Метод

public WalletPassphrase ( string passphrase, int timeoutInSeconds ) : string
passphrase string
timeoutInSeconds int
Результат string

WalletPassphraseChange() публичный Метод

public WalletPassphraseChange ( string oldPassphrase, string newPassphrase ) : string
oldPassphrase string
newPassphrase string
Результат string