C# Class Coinium.Core.Coin.Daemon.DaemonClient

RPC client for coind's.
Inheritance: DaemonBase
Afficher le fichier Open project: Ziftr/CoiniumServ Class Usage Examples

Méthodes publiques

Méthode Description
AddMultiSigAddress ( int nRquired, List publicKeys, string account ) : string

Version 0.8: Attempts add or remove from the addnode list or try a connection to once.

AddNode ( string node, string mode ) : void

Version 0.8: Attempts add or remove from the addnode list or try a connection to once.

BackupWallet ( string walletPath ) : void

Safely copies wallet.dat to destination, which can be a directory or a path with a filename.

CreateMultiSig ( int nRquired, List publicKeys ) : MultisigAddress

Creates a multi-signature address.

CreateRawTransaction ( CreateRawTransaction rawTransaction ) : string

Version 0.7: Creates a raw transaction spending given inputs.

DaemonClient ( string url, string user, string password ) : System
DecodeRawTransaction ( string rawTransactionHex ) : DecodedRawTransaction

Version 0.7: Produces a human-readable JSON object for a raw transaction.

DumpPrivateKey ( string bitcoinAddress ) : string

Reveals the private key corresponding to bitcoinaddress.

EncryptWallet ( string passPhrase ) : string

Encrypts the wallet with a passphrase.

GetAccount ( string bitcoinAddress ) : string

Returns the account associated with the given address.

GetAccountAddress ( string account ) : string

Returns the current bitcoin address for receiving payments to this account.

GetAddedNodeInfo ( bool dns, string node = "" ) : AddedNodeInfo

Version 0.8: Returns information about the given added node, or all added nodes (note that onetry addnodes are not listed here). If dns is false, only a list of added nodes will be provided, otherwise connected information will also be available.

GetAddressesByAccount ( string account ) : List

Returns the list of addresses for the given account.

GetBalance ( string account = "" ) : decimal

If [account] is not specified, returns the server's total available balance. If [account] is specified, returns the balance in the account.

GetBestBlockHash ( ) : string

Returns the hash of the best (tip) block in the longest block chain.

GetBlock ( string hash ) : Block

Returns information about the block with the given hash.

GetBlockCount ( ) : long

Returns the number of blocks in the longest block chain.

GetBlockHash ( long index ) : string

Returns hash of block in best-block-chain at ; index 0 is the genesis block.

GetBlockTemplate ( ) : BlockTemplate

https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki https://en.bitcoin.it/wiki/Getblocktemplate

GetConnectionCount ( ) : long

Returns the number of connections to other nodes.

GetDifficulty ( ) : decimal

Returns the proof-of-work difficulty as a multiple of the minimum difficulty.

GetGenerate ( ) : bool

Returns true or false whether bitcoind is currently generating hashes.

GetHashesPerSec ( ) : decimal

Returns a recent hashes per second performance measurement while generating.

GetInfo ( ) : Info

Returns an object containing various state info.

GetMiningInfo ( ) : MiningInfo

Returns an object containing mining-related information: blocks, currentblocksize, currentblocktx, difficulty, errors, generate, genproclimit, hashespersec, pooledtx, testnet

GetNewAddress ( string account = "" ) : string

Returns a new bitcoin address for receiving payments. If [account] is specified (recommended), it is added to the address book so payments received with the address will be credited to [account].

GetPeerInfo ( ) : IList

Version 0.7: Returns data about each connected node.

GetRawChangeAddress ( ) : void

recent git checkouts only Returns a new Bitcoin address, for receiving change. This is for use with raw transactions, NOT normal use.

GetRawMemPool ( ) : List

Version 0.7: Returns all transaction ids in memory pool.

GetRawTransaction ( string txId, int verbose ) : DecodedRawTransaction

Version 0.7: Returns raw transaction representation for given transaction id.

GetReceivedByAccount ( string account = "", int minconf = 1 ) : decimal

Returns the total amount received by addresses with [account] in transactions with at least [minconf] confirmations. If [account] not provided return will include all transactions to all accounts. (version 0.3.24)

GetReceivedByAddress ( string bitcoinAddress, int minconf = 1 ) : decimal

Returns the total amount received by bitcoinaddress in transactions with at least [minconf] confirmations. While some might consider this obvious, value reported by this only considers *receiving* transactions. It does not check payments that have been made *from* this address. In other words, this is not "getaddressbalance". Works only for addresses in the local wallet, external addresses will always show 0.

GetTransaction ( string txId ) : Transaction

Returns an object about the given transaction containing: amount : total amount of the transaction confirmations : number of confirmations of the transaction txid : the transaction ID time : time associated with the transaction[1]. details - An array of objects containing: - account - address - category - amount - fee

GetTxOut ( string txId, long n, bool includeMemPool = true ) : Transaction

Returns details about an unspent transaction output (UTXO).

GetTxOutSetInfo ( ) : TxOutSetInfo

Returns statistics about the unspent transaction output (UTXO) set.

Getwork ( ) : Work

If [data] is not specified, returns formatted hash data to work on: "midstate" : precomputed hash state after hashing the first half of the data "data" : block data "hash1" : formatted hash buffer for second hash "target" : little endian hash target If [data] is specified, tries to solve the block and returns true if it was successful.

Getwork ( string data ) : bool

The Getwork Completion response from the Bitcoin daemon is very simply a true or false value. If the value is true, then the hash was accepted and a new block has been created! If the value is false then the hash was rejected.

ImportPrivKey ( string bitcoinPrivKey, string label = "", bool rescan = true ) : void

Adds a private key (as returned by dumpprivkey) to your wallet. This may take a while, as a rescan is done, looking for existing transactions. Optional [rescan] parameter added in 0.8.0.

KeyPoolRefill ( ) : void

Fills the keypool, requires wallet passphrase to be set.

ListAccounts ( ) : decimal>.Dictionary

Returns Object that has account names as keys, account balances as values.

ListAddressGroupings ( ) : List>>

Version 0.7: Returns all addresses in the wallet and info used for coincontrol.

ListLockUnspent ( ) : void

version 0.8 Returns list of temporarily unspendable outputs

ListReceivedByAccount ( int minconf = 1, bool includeEmpty = false ) : List

Returns an array of objects containing: account : the account of the receiving addresses amount : total amount received by addresses with this account confirmations : number of confirmations of the most recent transaction included

ListReceivedByAddress ( int minconf = 1, bool includeEmpty = false ) : List

Returns an array of objects containing: address : receiving address account : the account of the receiving address amount : total amount received by the address confirmations : number of confirmations of the most recent transaction included To get a list of accounts on the system, execute bitcoind listreceivedbyaddress 0 true

ListSinceBlock ( string blockHash, int targetConfirmations ) : TransactionsSinceBlock

Get all transactions in blocks since block [blockhash], or all transactions if omitted.

ListTransactions ( string account = "", int count = 10, int from ) : List

Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided will return recent transaction from all accounts.

ListUnspent ( int minConf = 1, int maxConf = 999999 ) : List

Version 0.7: Returns array of unspent transaction inputs in the wallet.

LockUnspent ( ) : void

version 0.8 Updates list of temporarily unspendable outputs

Move ( string fromAccount, string toAccount, decimal amount, int minConf = 1, string comment = "" ) : bool

Move from one account in your wallet to another.

SendFrom ( string fromAccount, string toBitcoinAddress, decimal amount, int minConf = 1, string comment = "", string commentTo = "" ) : string

Amount is a real and is rounded to 8 decimal places. Will send the given amount to the given address, ensuring the account has a valid balance using [minconf] confirmations. Returns the transaction ID if successful (not in JSON object).

SendMany ( string fromAccount, decimal>.Dictionary toBitcoinAddress, int minConf = 1, string comment = "" ) : string

Send bitcoins to multiple addresses in one transaction. Amounts are double-precision floating point numbers.

SendToAddress ( string bitcoinAddress, decimal amount, string comment, string commentTo ) : string

Amount is a real and is rounded to 8 decimal places. Returns the transaction ID if successful.

SentRawTransaction ( string hexString ) : string

Version 0.7: Submits raw transaction (serialized, hex-encoded) to local node and network.

SetAccount ( string bitcoinAddress, string account ) : void

Sets the account associated with the given address. Assigning address that is already assigned to the same account will create a new address associated with that account.

SetGenerate ( bool generate, int genProcLimit = -1 ) : void

Generate is true or false to turn generation on or off. Generation is limited to [genproclimit] processors, -1 is unlimited.

SetTxFee ( decimal amount ) : bool

Amount is a real and is rounded to the nearest 0.00000001.

SignMessage ( string bitcoinAddress, string message ) : string

Sign a message with the private key of an address.

SignRawTransaction ( SignRawTransaction rawTransaction ) : SignedRawTransaction

Version 0.7: Adds signatures to a raw transaction and returns the resulting raw transaction.

Stop ( ) : string

Stop bitcoin server.

SubmitBlock ( ) : void

Attempts to submit new block to network.

ValidateAddress ( string bitcoinAddress ) : ValidateAddress

Return information about the bitcoin address.

VerifyMessage ( string bitcoinAddress, string signature, string message ) : bool

Verify a signed message.

WalletLock ( ) : void

Removes the wallet encryption key from memory, locking the wallet. After calling this method, you will need to call walletpassphrase again before being able to call any methods which require the wallet to be unlocked.

WalletPassPhrase ( string passphrase, int timeout ) : void

Stores the wallet decryption key in memory for timeout seconds. This essentialy unlocks the wallet for the given time. During this time more commands are allowed to be invoked (like transferring bitcoins).

WalletPassPhraseChange ( string oldpassphrase, string newpassphrase ) : void

Changes the wallet passphrase from oldpassphrase to newpassphrase.

Private Methods

Méthode Description
GetBlockNumber ( ) : long
GetMemoryPool ( ) : void

Method Details

AddMultiSigAddress() public méthode

Version 0.8: Attempts add or remove from the addnode list or try a connection to once.
public AddMultiSigAddress ( int nRquired, List publicKeys, string account ) : string
nRquired int Number of required signatures to sign a transaction.
publicKeys List Public keys associated with the multi signature address.
account string The account to associate with the multi signature address.
Résultat string

AddNode() public méthode

Version 0.8: Attempts add or remove from the addnode list or try a connection to once.
public AddNode ( string node, string mode ) : void
node string Node URL to add.
mode string One of the following: add / remove / onetry.
Résultat void

BackupWallet() public méthode

Safely copies wallet.dat to destination, which can be a directory or a path with a filename.
public BackupWallet ( string walletPath ) : void
walletPath string /// The location to copy the wallet.dat to. Can be a directory or a path with a filename. ///
Résultat void

CreateMultiSig() public méthode

Creates a multi-signature address.
public CreateMultiSig ( int nRquired, List publicKeys ) : MultisigAddress
nRquired int Number of required signatures to sign a transaction.
publicKeys List Public keys associated with the multi signature address.
Résultat Coinium.Core.Coin.Daemon.Responses.MultisigAddress

CreateRawTransaction() public méthode

Version 0.7: Creates a raw transaction spending given inputs.
public CreateRawTransaction ( CreateRawTransaction rawTransaction ) : string
rawTransaction Coinium.Core.Coin.Daemon.Requests.CreateRawTransaction The raw transaction details.
Résultat string

DaemonClient() public méthode

public DaemonClient ( string url, string user, string password ) : System
url string
user string
password string
Résultat System

DecodeRawTransaction() public méthode

Version 0.7: Produces a human-readable JSON object for a raw transaction.
public DecodeRawTransaction ( string rawTransactionHex ) : DecodedRawTransaction
rawTransactionHex string The hex of the raw transaction.
Résultat Coinium.Core.Coin.Daemon.Responses.DecodedRawTransaction

DumpPrivateKey() public méthode

Reveals the private key corresponding to bitcoinaddress.
public DumpPrivateKey ( string bitcoinAddress ) : string
bitcoinAddress string The bitcoin address to dump the private key of.
Résultat string

EncryptWallet() public méthode

Encrypts the wallet with a passphrase.
public EncryptWallet ( string passPhrase ) : string
passPhrase string The passphrase to encrypt the wallet with.
Résultat string

GetAccount() public méthode

Returns the account associated with the given address.
public GetAccount ( string bitcoinAddress ) : string
bitcoinAddress string The address to get the account for.
Résultat string

GetAccountAddress() public méthode

Returns the current bitcoin address for receiving payments to this account.
public GetAccountAddress ( string account ) : string
account string The account to get the address for.
Résultat string

GetAddedNodeInfo() public méthode

Version 0.8: Returns information about the given added node, or all added nodes (note that onetry addnodes are not listed here). If dns is false, only a list of added nodes will be provided, otherwise connected information will also be available.
public GetAddedNodeInfo ( bool dns, string node = "" ) : AddedNodeInfo
dns bool /// If false, only a list of added nodes will be provided, otherwise /// connected information will also be available. ///
node string The node URL.
Résultat Coinium.Core.Coin.Daemon.Responses.AddedNodeInfo

GetAddressesByAccount() public méthode

Returns the list of addresses for the given account.
public GetAddressesByAccount ( string account ) : List
account string The account to return a list of addresses for.
Résultat List

GetBalance() public méthode

If [account] is not specified, returns the server's total available balance. If [account] is specified, returns the balance in the account.
public GetBalance ( string account = "" ) : decimal
account string The account to get the balance for.
Résultat decimal

GetBestBlockHash() public méthode

Returns the hash of the best (tip) block in the longest block chain.
public GetBestBlockHash ( ) : string
Résultat string

GetBlock() public méthode

Returns information about the block with the given hash.
public GetBlock ( string hash ) : Block
hash string The hash of the block to get information about.
Résultat Coinium.Core.Coin.Daemon.Responses.Block

GetBlockCount() public méthode

Returns the number of blocks in the longest block chain.
public GetBlockCount ( ) : long
Résultat long

GetBlockHash() public méthode

Returns hash of block in best-block-chain at ; index 0 is the genesis block.
public GetBlockHash ( long index ) : string
index long The index of the block.
Résultat string

GetBlockTemplate() public méthode

https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki https://en.bitcoin.it/wiki/Getblocktemplate
public GetBlockTemplate ( ) : BlockTemplate
Résultat Coinium.Core.Coin.Daemon.Responses.BlockTemplate

GetConnectionCount() public méthode

Returns the number of connections to other nodes.
public GetConnectionCount ( ) : long
Résultat long

GetDifficulty() public méthode

Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
public GetDifficulty ( ) : decimal
Résultat decimal

GetGenerate() public méthode

Returns true or false whether bitcoind is currently generating hashes.
public GetGenerate ( ) : bool
Résultat bool

GetHashesPerSec() public méthode

Returns a recent hashes per second performance measurement while generating.
public GetHashesPerSec ( ) : decimal
Résultat decimal

GetInfo() public méthode

Returns an object containing various state info.
public GetInfo ( ) : Info
Résultat Coinium.Core.Coin.Daemon.Responses.Info

GetMiningInfo() public méthode

Returns an object containing mining-related information: blocks, currentblocksize, currentblocktx, difficulty, errors, generate, genproclimit, hashespersec, pooledtx, testnet
public GetMiningInfo ( ) : MiningInfo
Résultat Coinium.Core.Coin.Daemon.Responses.MiningInfo

GetNewAddress() public méthode

Returns a new bitcoin address for receiving payments. If [account] is specified (recommended), it is added to the address book so payments received with the address will be credited to [account].
public GetNewAddress ( string account = "" ) : string
account string The account to add the new address to.
Résultat string

GetPeerInfo() public méthode

Version 0.7: Returns data about each connected node.
public GetPeerInfo ( ) : IList
Résultat IList

GetRawChangeAddress() public méthode

recent git checkouts only Returns a new Bitcoin address, for receiving change. This is for use with raw transactions, NOT normal use.
public GetRawChangeAddress ( ) : void
Résultat void

GetRawMemPool() public méthode

Version 0.7: Returns all transaction ids in memory pool.
public GetRawMemPool ( ) : List
Résultat List

GetRawTransaction() public méthode

Version 0.7: Returns raw transaction representation for given transaction id.
public GetRawTransaction ( string txId, int verbose ) : DecodedRawTransaction
txId string The transaction id.
verbose int /// The verbosity level. If it is higher than 0, /// a lot more information will be returned. ///
Résultat Coinium.Core.Coin.Daemon.Responses.DecodedRawTransaction

GetReceivedByAccount() public méthode

Returns the total amount received by addresses with [account] in transactions with at least [minconf] confirmations. If [account] not provided return will include all transactions to all accounts. (version 0.3.24)
public GetReceivedByAccount ( string account = "", int minconf = 1 ) : decimal
account string The account to get the balance for.
minconf int Minimum amount of confirmations before a transaction is included.
Résultat decimal

GetReceivedByAddress() public méthode

Returns the total amount received by bitcoinaddress in transactions with at least [minconf] confirmations. While some might consider this obvious, value reported by this only considers *receiving* transactions. It does not check payments that have been made *from* this address. In other words, this is not "getaddressbalance". Works only for addresses in the local wallet, external addresses will always show 0.
public GetReceivedByAddress ( string bitcoinAddress, int minconf = 1 ) : decimal
bitcoinAddress string
minconf int Minimum amount of confirmations before a transaction is included.
Résultat decimal

GetTransaction() public méthode

Returns an object about the given transaction containing: amount : total amount of the transaction confirmations : number of confirmations of the transaction txid : the transaction ID time : time associated with the transaction[1]. details - An array of objects containing: - account - address - category - amount - fee
public GetTransaction ( string txId ) : Transaction
txId string The transaction id.
Résultat Coinium.Core.Coin.Daemon.Responses.Transaction

GetTxOut() public méthode

Returns details about an unspent transaction output (UTXO).
public GetTxOut ( string txId, long n, bool includeMemPool = true ) : Transaction
txId string The transaction id.
n long The 'n' value of the out transaction we want to see.
includeMemPool bool Include unspent transaction in the memory pool.
Résultat Coinium.Core.Coin.Daemon.Responses.Transaction

GetTxOutSetInfo() public méthode

Returns statistics about the unspent transaction output (UTXO) set.
public GetTxOutSetInfo ( ) : TxOutSetInfo
Résultat Coinium.Core.Coin.Daemon.Responses.TxOutSetInfo

Getwork() public méthode

If [data] is not specified, returns formatted hash data to work on: "midstate" : precomputed hash state after hashing the first half of the data "data" : block data "hash1" : formatted hash buffer for second hash "target" : little endian hash target If [data] is specified, tries to solve the block and returns true if it was successful.
public Getwork ( ) : Work
Résultat Coinium.Core.Coin.Daemon.Responses.Work

Getwork() public méthode

The Getwork Completion response from the Bitcoin daemon is very simply a true or false value. If the value is true, then the hash was accepted and a new block has been created! If the value is false then the hash was rejected.
public Getwork ( string data ) : bool
data string
Résultat bool

ImportPrivKey() public méthode

Adds a private key (as returned by dumpprivkey) to your wallet. This may take a while, as a rescan is done, looking for existing transactions. Optional [rescan] parameter added in 0.8.0.
public ImportPrivKey ( string bitcoinPrivKey, string label = "", bool rescan = true ) : void
bitcoinPrivKey string Private key to import.
label string
rescan bool Should a rescan be performed?
Résultat void

KeyPoolRefill() public méthode

Fills the keypool, requires wallet passphrase to be set.
public KeyPoolRefill ( ) : void
Résultat void

ListAccounts() public méthode

Returns Object that has account names as keys, account balances as values.
public ListAccounts ( ) : decimal>.Dictionary
Résultat decimal>.Dictionary

ListAddressGroupings() public méthode

Version 0.7: Returns all addresses in the wallet and info used for coincontrol.
public ListAddressGroupings ( ) : List>>
Résultat List>>

ListLockUnspent() public méthode

version 0.8 Returns list of temporarily unspendable outputs
public ListLockUnspent ( ) : void
Résultat void

ListReceivedByAccount() public méthode

Returns an array of objects containing: account : the account of the receiving addresses amount : total amount received by addresses with this account confirmations : number of confirmations of the most recent transaction included
public ListReceivedByAccount ( int minconf = 1, bool includeEmpty = false ) : List
minconf int
includeEmpty bool Include empty accounts?
Résultat List

ListReceivedByAddress() public méthode

Returns an array of objects containing: address : receiving address account : the account of the receiving address amount : total amount received by the address confirmations : number of confirmations of the most recent transaction included To get a list of accounts on the system, execute bitcoind listreceivedbyaddress 0 true
public ListReceivedByAddress ( int minconf = 1, bool includeEmpty = false ) : List
minconf int
includeEmpty bool Include empty address.
Résultat List

ListSinceBlock() public méthode

Get all transactions in blocks since block [blockhash], or all transactions if omitted.
public ListSinceBlock ( string blockHash, int targetConfirmations ) : TransactionsSinceBlock
blockHash string The block hash.
targetConfirmations int Minimum amount of confirmations, 1 or higher is required as a value.
Résultat Coinium.Core.Coin.Daemon.Responses.TransactionsSinceBlock

ListTransactions() public méthode

Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided will return recent transaction from all accounts.
public ListTransactions ( string account = "", int count = 10, int from ) : List
account string The account to list transactions for.
count int Number of transactions to list.
from int Starting point to list transactions from.
Résultat List

ListUnspent() public méthode

Version 0.7: Returns array of unspent transaction inputs in the wallet.
public ListUnspent ( int minConf = 1, int maxConf = 999999 ) : List
minConf int Minimum amount of confirmations needed before transaction is included.
maxConf int Maximum amount of confirmations allowed to include transaction.
Résultat List

LockUnspent() public méthode

version 0.8 Updates list of temporarily unspendable outputs
public LockUnspent ( ) : void
Résultat void

Move() public méthode

Move from one account in your wallet to another.
public Move ( string fromAccount, string toAccount, decimal amount, int minConf = 1, string comment = "" ) : bool
fromAccount string From account.
toAccount string To account.
amount decimal Amount to move.
minConf int
comment string Comment to go with the transaction.
Résultat bool

SendFrom() public méthode

Amount is a real and is rounded to 8 decimal places. Will send the given amount to the given address, ensuring the account has a valid balance using [minconf] confirmations. Returns the transaction ID if successful (not in JSON object).
public SendFrom ( string fromAccount, string toBitcoinAddress, decimal amount, int minConf = 1, string comment = "", string commentTo = "" ) : string
fromAccount string From account.
toBitcoinAddress string Bitcoin address to move bitcoins to.
amount decimal Amount to move.
minConf int
comment string Comment to go with the transaction.
commentTo string Comment in the 'to' field.
Résultat string

SendMany() public méthode

Send bitcoins to multiple addresses in one transaction. Amounts are double-precision floating point numbers.
public SendMany ( string fromAccount, decimal>.Dictionary toBitcoinAddress, int minConf = 1, string comment = "" ) : string
fromAccount string The account to send the bitcoins from.
toBitcoinAddress decimal>.Dictionary A dictionary of address to send bitcoins to. The key is the address, the value is the amount of bitcoins to send.
minConf int
comment string A comment to provide with the transaction.
Résultat string

SendToAddress() public méthode

Amount is a real and is rounded to 8 decimal places. Returns the transaction ID if successful.
public SendToAddress ( string bitcoinAddress, decimal amount, string comment, string commentTo ) : string
bitcoinAddress string Bitcoin address to sent to.
amount decimal Amount to send.
comment string Comment to go with the transaction.
commentTo string Comment for the 'to' field.
Résultat string

SentRawTransaction() public méthode

Version 0.7: Submits raw transaction (serialized, hex-encoded) to local node and network.
public SentRawTransaction ( string hexString ) : string
hexString string
Résultat string

SetAccount() public méthode

Sets the account associated with the given address. Assigning address that is already assigned to the same account will create a new address associated with that account.
public SetAccount ( string bitcoinAddress, string account ) : void
bitcoinAddress string The bitcoin address to assocaite.
account string The account to associate with.
Résultat void

SetGenerate() public méthode

Generate is true or false to turn generation on or off. Generation is limited to [genproclimit] processors, -1 is unlimited.
public SetGenerate ( bool generate, int genProcLimit = -1 ) : void
generate bool True to turn generation on.
genProcLimit int Number of processors to use, -1 is unlimited.
Résultat void

SetTxFee() public méthode

Amount is a real and is rounded to the nearest 0.00000001.
public SetTxFee ( decimal amount ) : bool
amount decimal Amount of transaction fee.
Résultat bool

SignMessage() public méthode

Sign a message with the private key of an address.
public SignMessage ( string bitcoinAddress, string message ) : string
bitcoinAddress string Address who's private key is used to sign the message.
message string The message to sign.
Résultat string

SignRawTransaction() public méthode

Version 0.7: Adds signatures to a raw transaction and returns the resulting raw transaction.
public SignRawTransaction ( SignRawTransaction rawTransaction ) : SignedRawTransaction
rawTransaction Coinium.Core.Coin.Daemon.Requests.SignRawTransaction The raw transaction to sign.
Résultat Coinium.Core.Coin.Daemon.Responses.SignedRawTransaction

Stop() public méthode

Stop bitcoin server.
public Stop ( ) : string
Résultat string

SubmitBlock() public méthode

Attempts to submit new block to network.
public SubmitBlock ( ) : void
Résultat void

ValidateAddress() public méthode

Return information about the bitcoin address.
public ValidateAddress ( string bitcoinAddress ) : ValidateAddress
bitcoinAddress string The bitcoin address.
Résultat Coinium.Core.Coin.Daemon.Responses.ValidateAddress

VerifyMessage() public méthode

Verify a signed message.
public VerifyMessage ( string bitcoinAddress, string signature, string message ) : bool
bitcoinAddress string The bitcoin address who's public key is used to verify the message.
signature string The provided signature.
message string The signed message.
Résultat bool

WalletLock() public méthode

Removes the wallet encryption key from memory, locking the wallet. After calling this method, you will need to call walletpassphrase again before being able to call any methods which require the wallet to be unlocked.
public WalletLock ( ) : void
Résultat void

WalletPassPhrase() public méthode

Stores the wallet decryption key in memory for timeout seconds. This essentialy unlocks the wallet for the given time. During this time more commands are allowed to be invoked (like transferring bitcoins).
public WalletPassPhrase ( string passphrase, int timeout ) : void
passphrase string Pass phrase to use.
timeout int The timeout in seconds.
Résultat void

WalletPassPhraseChange() public méthode

Changes the wallet passphrase from oldpassphrase to newpassphrase.
public WalletPassPhraseChange ( string oldpassphrase, string newpassphrase ) : void
oldpassphrase string Old pass phrase.
newpassphrase string The new pass phrase.
Résultat void