Method | Description | |
---|---|---|
AddMultiSigAddress ( int nRquired, List |
Version 0.8: Attempts add or remove
|
|
AddNode ( string node, string mode ) : void |
Version 0.8: Attempts add or remove
|
|
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 |
Creates a multi-signature address.
|
|
CreateRawTransaction ( |
Version 0.7: Creates a raw transaction spending given inputs.
|
|
DaemonClient ( string url, string user, string password ) : System | ||
DecodeRawTransaction ( string rawTransactionHex ) : |
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 = "" ) : |
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 ) : |
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
|
|
GetBlockTemplate ( ) : |
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 ( ) : |
Returns an object containing various state info.
|
|
GetMiningInfo ( ) : |
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 ) : |
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 ) : |
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 ) : |
Returns details about an unspent transaction output (UTXO).
|
|
GetTxOutSetInfo ( ) : |
Returns statistics about the unspent transaction output (UTXO) set.
|
|
Getwork ( ) : |
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 ) : |
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 |
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
|
|
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 ( |
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 ) : |
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.
|
Method | Description | |
---|---|---|
GetBlockNumber ( ) : long | ||
GetMemoryPool ( ) : void |
public AddMultiSigAddress ( int nRquired, List |
||
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. |
return | string |
public AddNode ( string node, string mode ) : void | ||
node | string | Node URL to add. |
mode | string | One of the following: add / remove / onetry. |
return | void |
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. /// |
return | void |
public CreateMultiSig ( int nRquired, List |
||
nRquired | int | Number of required signatures to sign a transaction. |
publicKeys | List |
Public keys associated with the multi signature address. |
return |
public CreateRawTransaction ( |
||
rawTransaction | The raw transaction details. | |
return | string |
public DaemonClient ( string url, string user, string password ) : System | ||
url | string | |
user | string | |
password | string | |
return | System |
public DecodeRawTransaction ( string rawTransactionHex ) : |
||
rawTransactionHex | string | The hex of the raw transaction. |
return |
public DumpPrivateKey ( string bitcoinAddress ) : string | ||
bitcoinAddress | string | The bitcoin address to dump the private key of. |
return | string |
public EncryptWallet ( string passPhrase ) : string | ||
passPhrase | string | The passphrase to encrypt the wallet with. |
return | string |
public GetAccount ( string bitcoinAddress ) : string | ||
bitcoinAddress | string | The address to get the account for. |
return | string |
public GetAccountAddress ( string account ) : string | ||
account | string | The account to get the address for. |
return | string |
public GetAddedNodeInfo ( bool dns, string node = "" ) : |
||
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. |
return |
public GetAddressesByAccount ( string account ) : List |
||
account | string | The account to return a list of addresses for. |
return | List |
public GetBalance ( string account = "" ) : decimal | ||
account | string | The account to get the balance for. |
return | decimal |
public GetBlock ( string hash ) : |
||
hash | string | The hash of the block to get information about. |
return |
public GetBlockHash ( long index ) : string | ||
index | long | The index of the block. |
return | string |
public GetBlockTemplate ( ) : |
||
return |
public GetMiningInfo ( ) : |
||
return |
public GetNewAddress ( string account = "" ) : string | ||
account | string | The account to add the new address to. |
return | string |
public GetRawTransaction ( string txId, int verbose ) : |
||
txId | string | The transaction id. |
verbose | int | /// The verbosity level. If it is higher than 0, /// a lot more information will be returned. /// |
return |
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. |
return | decimal |
public GetReceivedByAddress ( string bitcoinAddress, int minconf = 1 ) : decimal | ||
bitcoinAddress | string | |
minconf | int | Minimum amount of confirmations before a transaction is included. |
return | decimal |
public GetTransaction ( string txId ) : |
||
txId | string | The transaction id. |
return |
public GetTxOut ( string txId, long n, bool includeMemPool = true ) : |
||
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. |
return |
public GetTxOutSetInfo ( ) : |
||
return |
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? |
return | void |
public ListAccounts ( ) : decimal>.Dictionary |
||
return | decimal>.Dictionary |
public ListReceivedByAccount ( int minconf = 1, bool includeEmpty = false ) : List |
||
minconf | int | |
includeEmpty | bool | Include empty accounts? |
return | List |
public ListReceivedByAddress ( int minconf = 1, bool includeEmpty = false ) : List |
||
minconf | int | |
includeEmpty | bool | Include empty address. |
return | List |
public ListSinceBlock ( string blockHash, int targetConfirmations ) : |
||
blockHash | string | The block hash. |
targetConfirmations | int | Minimum amount of confirmations, 1 or higher is required as a value. |
return |
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. |
return | List |
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. |
return | List |
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. |
return | bool |
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. |
return | string |
public SendMany ( string fromAccount, decimal>.Dictionary |
||
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. |
return | string |
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. |
return | string |
public SentRawTransaction ( string hexString ) : string | ||
hexString | string | |
return | string |
public SetAccount ( string bitcoinAddress, string account ) : void | ||
bitcoinAddress | string | The bitcoin address to assocaite. |
account | string | The account to associate with. |
return | void |
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. |
return | void |
public SetTxFee ( decimal amount ) : bool | ||
amount | decimal | Amount of transaction fee. |
return | bool |
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. |
return | string |
public SignRawTransaction ( |
||
rawTransaction | The raw transaction to sign. | |
return |
public ValidateAddress ( string bitcoinAddress ) : |
||
bitcoinAddress | string | The bitcoin address. |
return |
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. |
return | bool |
public WalletPassPhrase ( string passphrase, int timeout ) : void | ||
passphrase | string | Pass phrase to use. |
timeout | int | The timeout in seconds. |
return | void |
public WalletPassPhraseChange ( string oldpassphrase, string newpassphrase ) : void | ||
oldpassphrase | string | Old pass phrase. |
newpassphrase | string | The new pass phrase. |
return | void |