|
|
|
|
@@ -137,13 +137,13 @@ UniValue getnewaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
if (fHelp || params.size() > 1)
|
|
|
|
|
throw runtime_error(
|
|
|
|
|
"getnewaddress ( \"account\" )\n"
|
|
|
|
|
"\nReturns a new Bitcoin address for receiving payments.\n"
|
|
|
|
|
"\nReturns a new Blackcoin address for receiving payments.\n"
|
|
|
|
|
"If 'account' is specified (DEPRECATED), it is added to the address book \n"
|
|
|
|
|
"so payments received with the address will be credited to 'account'.\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"account\" (string, optional) DEPRECATED. The account name for the address to be linked to. If not provided, the default account \"\" is used. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created if there is no account by the given name.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"\"bitcoinaddress\" (string) The new bitcoin address\n"
|
|
|
|
|
"\"bitcoinaddress\" (string) The new blackcoin address\n"
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
+ HelpExampleCli("getnewaddress", "")
|
|
|
|
|
+ HelpExampleRpc("getnewaddress", "")
|
|
|
|
|
@@ -188,11 +188,11 @@ UniValue getaccountaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
if (fHelp || params.size() != 1)
|
|
|
|
|
throw runtime_error(
|
|
|
|
|
"getaccountaddress \"account\"\n"
|
|
|
|
|
"\nDEPRECATED. Returns the current Bitcoin address for receiving payments to this account.\n"
|
|
|
|
|
"\nDEPRECATED. Returns the current Blackcoin address for receiving payments to this account.\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"account\" (string, required) The account name for the address. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created and a new address created if there is no account by the given name.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"\"bitcoinaddress\" (string) The account bitcoin address\n"
|
|
|
|
|
"\"bitcoinaddress\" (string) The account blackcoin address\n"
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
+ HelpExampleCli("getaccountaddress", "")
|
|
|
|
|
+ HelpExampleCli("getaccountaddress", "\"\"")
|
|
|
|
|
@@ -220,7 +220,7 @@ UniValue getrawchangeaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
if (fHelp || params.size() > 1)
|
|
|
|
|
throw runtime_error(
|
|
|
|
|
"getrawchangeaddress\n"
|
|
|
|
|
"\nReturns a new Bitcoin address, for receiving change.\n"
|
|
|
|
|
"\nReturns a new Blackcoin address, for receiving change.\n"
|
|
|
|
|
"This is for use with raw transactions, NOT normal use.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"\"address\" (string) The address\n"
|
|
|
|
|
@@ -256,7 +256,7 @@ UniValue setaccount(const UniValue& params, bool fHelp)
|
|
|
|
|
"setaccount \"bitcoinaddress\" \"account\"\n"
|
|
|
|
|
"\nDEPRECATED. Sets the account associated with the given address.\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The bitcoin address to be associated with an account.\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The blackcoin address to be associated with an account.\n"
|
|
|
|
|
"2. \"account\" (string, required) The account to assign the address to.\n"
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
+ HelpExampleCli("setaccount", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ\" \"tabby\"")
|
|
|
|
|
@@ -268,7 +268,7 @@ UniValue setaccount(const UniValue& params, bool fHelp)
|
|
|
|
|
CTxDestination dest = DecodeDestination(params[0].get_str());
|
|
|
|
|
if (!IsValidDestination(dest)) {
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY,
|
|
|
|
|
"Invalid Bitcoin address");
|
|
|
|
|
"Invalid Blackcoin address");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string strAccount;
|
|
|
|
|
@@ -304,7 +304,7 @@ UniValue getaccount(const UniValue& params, bool fHelp)
|
|
|
|
|
"getaccount \"bitcoinaddress\"\n"
|
|
|
|
|
"\nDEPRECATED. Returns the account associated with the given address.\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The bitcoin address for account lookup.\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The blackcoin address for account lookup.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"\"accountname\" (string) the account address\n"
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
@@ -317,7 +317,7 @@ UniValue getaccount(const UniValue& params, bool fHelp)
|
|
|
|
|
CTxDestination dest = DecodeDestination(params[0].get_str());
|
|
|
|
|
if (!IsValidDestination(dest)) {
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY,
|
|
|
|
|
"Invalid Bitcoin address");
|
|
|
|
|
"Invalid Blackcoin address");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string strAccount;
|
|
|
|
|
@@ -342,7 +342,7 @@ UniValue getaddressesbyaccount(const UniValue& params, bool fHelp)
|
|
|
|
|
"1. \"account\" (string, required) The account name.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"[ (json array of string)\n"
|
|
|
|
|
" \"bitcoinaddress\" (string) a bitcoin address associated with the given account\n"
|
|
|
|
|
" \"bitcoinaddress\" (string) a blackcoin address associated with the given account\n"
|
|
|
|
|
" ,...\n"
|
|
|
|
|
"]\n"
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
@@ -417,7 +417,7 @@ UniValue sendtoaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
"\nSend an amount to a given address.\n"
|
|
|
|
|
+ HelpRequiringPassphrase() +
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The bitcoin address to send to.\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The blackcoin address to send to.\n"
|
|
|
|
|
"2. \"amount\" (numeric or string, required) The amount in " + CURRENCY_UNIT + " to send. eg 0.1\n"
|
|
|
|
|
"3. \"comment\" (string, optional) A comment used to store what the transaction is for. \n"
|
|
|
|
|
" This is not part of the transaction, just kept in your wallet.\n"
|
|
|
|
|
@@ -425,7 +425,7 @@ UniValue sendtoaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
" to which you're sending the transaction. This is not part of the \n"
|
|
|
|
|
" transaction, just kept in your wallet.\n"
|
|
|
|
|
"5. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.\n"
|
|
|
|
|
" The recipient will receive less bitcoins than you enter in the amount field.\n"
|
|
|
|
|
" The recipient will receive less blackcoins than you enter in the amount field.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"\"transactionid\" (string) The transaction id.\n"
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
@@ -480,7 +480,7 @@ UniValue listaddressgroupings(const UniValue& params, bool fHelp)
|
|
|
|
|
"[\n"
|
|
|
|
|
" [\n"
|
|
|
|
|
" [\n"
|
|
|
|
|
" \"bitcoinaddress\", (string) The bitcoin address\n"
|
|
|
|
|
" \"bitcoinaddress\", (string) The blackcoin address\n"
|
|
|
|
|
" amount, (numeric) The amount in " + CURRENCY_UNIT + "\n"
|
|
|
|
|
" \"account\" (string, optional) The account (DEPRECATED)\n"
|
|
|
|
|
" ]\n"
|
|
|
|
|
@@ -529,7 +529,7 @@ UniValue signmessage(const UniValue& params, bool fHelp)
|
|
|
|
|
"\nSign a message with the private key of an address"
|
|
|
|
|
+ HelpRequiringPassphrase() + "\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The bitcoin address to use for the private key.\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The blackcoin address to use for the private key.\n"
|
|
|
|
|
"2. \"message\" (string, required) The message to create a signature of.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"\"signature\" (string) The signature of the message encoded in base 64\n"
|
|
|
|
|
@@ -582,9 +582,9 @@ UniValue getreceivedbyaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2)
|
|
|
|
|
throw runtime_error(
|
|
|
|
|
"getreceivedbyaddress \"bitcoinaddress\" ( minconf )\n"
|
|
|
|
|
"\nReturns the total amount received by the given bitcoinaddress in transactions with at least minconf confirmations.\n"
|
|
|
|
|
"\nReturns the total amount received by the given blackcoin address in transactions with at least minconf confirmations.\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The bitcoin address for transactions.\n"
|
|
|
|
|
"1. \"bitcoinaddress\" (string, required) The blackcoin address for transactions.\n"
|
|
|
|
|
"2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.\n"
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"amount (numeric) The total amount in " + CURRENCY_UNIT + " received at this address.\n"
|
|
|
|
|
@@ -604,7 +604,7 @@ UniValue getreceivedbyaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
// Bitcoin address
|
|
|
|
|
CTxDestination dest = DecodeDestination(params[0].get_str());
|
|
|
|
|
if (!IsValidDestination(dest)) {
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Bitcoin address");
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid Blackcoin address");
|
|
|
|
|
}
|
|
|
|
|
CScript scriptPubKey = GetScriptForDestination(dest);
|
|
|
|
|
if (!IsMine(*pwalletMain, scriptPubKey))
|
|
|
|
|
@@ -841,11 +841,11 @@ UniValue sendfrom(const UniValue& params, bool fHelp)
|
|
|
|
|
if (fHelp || params.size() < 3 || params.size() > 6)
|
|
|
|
|
throw runtime_error(
|
|
|
|
|
"sendfrom \"fromaccount\" \"tobitcoinaddress\" amount ( minconf \"comment\" \"comment-to\" )\n"
|
|
|
|
|
"\nDEPRECATED (use sendtoaddress). Sent an amount from an account to a bitcoin address."
|
|
|
|
|
"\nDEPRECATED (use sendtoaddress). Sent an amount from an account to a blackcoin address."
|
|
|
|
|
+ HelpRequiringPassphrase() + "\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"fromaccount\" (string, required) The name of the account to send funds from. May be the default account using \"\".\n"
|
|
|
|
|
"2. \"tobitcoinaddress\" (string, required) The bitcoin address to send funds to.\n"
|
|
|
|
|
"2. \"tobitcoinaddress\" (string, required) The blackcoin address to send funds to.\n"
|
|
|
|
|
"3. amount (numeric or string, required) The amount in " + CURRENCY_UNIT + " (transaction fee is added on top).\n"
|
|
|
|
|
"4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations.\n"
|
|
|
|
|
"5. \"comment\" (string, optional) A comment used to store what the transaction is for. \n"
|
|
|
|
|
@@ -870,7 +870,7 @@ UniValue sendfrom(const UniValue& params, bool fHelp)
|
|
|
|
|
CTxDestination dest = DecodeDestination(params[1].get_str());
|
|
|
|
|
if (!IsValidDestination(dest)) {
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY,
|
|
|
|
|
"Invalid Bitcoin address");
|
|
|
|
|
"Invalid Blackcoin address");
|
|
|
|
|
}
|
|
|
|
|
CAmount nAmount = AmountFromValue(params[2]);
|
|
|
|
|
if (nAmount <= 0)
|
|
|
|
|
@@ -913,14 +913,14 @@ UniValue sendmany(const UniValue& params, bool fHelp)
|
|
|
|
|
"1. \"fromaccount\" (string, required) DEPRECATED. The account to send the funds from. Should be \"\" for the default account\n"
|
|
|
|
|
"2. \"amounts\" (string, required) A json object with addresses and amounts\n"
|
|
|
|
|
" {\n"
|
|
|
|
|
" \"address\":amount (numeric or string) The bitcoin address is the key, the numeric amount (can be string) in " + CURRENCY_UNIT + " is the value\n"
|
|
|
|
|
" \"address\":amount (numeric or string) The blackcoin address is the key, the numeric amount (can be string) in " + CURRENCY_UNIT + " is the value\n"
|
|
|
|
|
" ,...\n"
|
|
|
|
|
" }\n"
|
|
|
|
|
"3. minconf (numeric, optional, default=1) Only use the balance confirmed at least this many times.\n"
|
|
|
|
|
"4. \"comment\" (string, optional) A comment\n"
|
|
|
|
|
"5. subtractfeefromamount (string, optional) A json array with addresses.\n"
|
|
|
|
|
" The fee will be equally deducted from the amount of each selected address.\n"
|
|
|
|
|
" Those recipients will receive less bitcoins than you enter in their corresponding amount field.\n"
|
|
|
|
|
" Those recipients will receive less blackcoins than you enter in their corresponding amount field.\n"
|
|
|
|
|
" If no addresses are specified here, the sender pays the fee.\n"
|
|
|
|
|
" [\n"
|
|
|
|
|
" \"address\" (string) Subtract fee from this address\n"
|
|
|
|
|
@@ -966,7 +966,7 @@ UniValue sendmany(const UniValue& params, bool fHelp)
|
|
|
|
|
CTxDestination dest = DecodeDestination(name_);
|
|
|
|
|
if (!IsValidDestination(dest)) {
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY,
|
|
|
|
|
std::string("Invalid Bitcoin address: ") +
|
|
|
|
|
std::string("Invalid Blackcoin address: ") +
|
|
|
|
|
name_);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1027,20 +1027,20 @@ UniValue addmultisigaddress(const UniValue& params, bool fHelp)
|
|
|
|
|
{
|
|
|
|
|
string msg = "addmultisigaddress nrequired [\"key\",...] ( \"account\" )\n"
|
|
|
|
|
"\nAdd a nrequired-to-sign multisignature address to the wallet.\n"
|
|
|
|
|
"Each key is a Bitcoin address or hex-encoded public key.\n"
|
|
|
|
|
"Each key is a Blackcoin address or hex-encoded public key.\n"
|
|
|
|
|
"If 'account' is specified (DEPRECATED), assign address to that account.\n"
|
|
|
|
|
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.\n"
|
|
|
|
|
"2. \"keysobject\" (string, required) A json array of bitcoin addresses or hex-encoded public keys\n"
|
|
|
|
|
"2. \"keysobject\" (string, required) A json array of blackcoin addresses or hex-encoded public keys\n"
|
|
|
|
|
" [\n"
|
|
|
|
|
" \"address\" (string) bitcoin address or hex-encoded public key\n"
|
|
|
|
|
" \"address\" (string) blackcoin address or hex-encoded public key\n"
|
|
|
|
|
" ...,\n"
|
|
|
|
|
" ]\n"
|
|
|
|
|
"3. \"account\" (string, optional) DEPRECATED. An account to assign the addresses to.\n"
|
|
|
|
|
|
|
|
|
|
"\nResult:\n"
|
|
|
|
|
"\"bitcoinaddress\" (string) A bitcoin address associated with the keys.\n"
|
|
|
|
|
"\"bitcoinaddress\" (string) A blackcoin address associated with the keys.\n"
|
|
|
|
|
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
"\nAdd a multisig address from 2 addresses\n"
|
|
|
|
|
@@ -1403,7 +1403,7 @@ UniValue listtransactions(const UniValue& params, bool fHelp)
|
|
|
|
|
" {\n"
|
|
|
|
|
" \"account\":\"accountname\", (string) DEPRECATED. The account name associated with the transaction. \n"
|
|
|
|
|
" It will be \"\" for the default account.\n"
|
|
|
|
|
" \"address\":\"bitcoinaddress\", (string) The bitcoin address of the transaction. Not present for \n"
|
|
|
|
|
" \"address\":\"bitcoinaddress\", (string) The blackcoin address of the transaction. Not present for \n"
|
|
|
|
|
" move transactions (category = move).\n"
|
|
|
|
|
" \"category\":\"send|receive|move\", (string) The transaction category. 'move' is a local (off blockchain)\n"
|
|
|
|
|
" transaction between accounts, and not associated with an address,\n"
|
|
|
|
|
@@ -1417,7 +1417,7 @@ UniValue listtransactions(const UniValue& params, bool fHelp)
|
|
|
|
|
" 'send' category of transactions.\n"
|
|
|
|
|
" \"confirmations\": n, (numeric) The number of confirmations for the transaction. Available for 'send' and \n"
|
|
|
|
|
" 'receive' category of transactions. Negative confirmations indicate the\n"
|
|
|
|
|
" transation conflicts with the block chain\n"
|
|
|
|
|
" transaction conflicts with the block chain\n"
|
|
|
|
|
" \"trusted\": xxx (bool) Whether we consider the outputs of this unconfirmed transaction safe to spend.\n"
|
|
|
|
|
" \"blockhash\": \"hashvalue\", (string) The block hash containing the transaction. Available for 'send' and 'receive'\n"
|
|
|
|
|
" category of transactions.\n"
|
|
|
|
|
@@ -1614,7 +1614,7 @@ UniValue listsinceblock(const UniValue& params, bool fHelp)
|
|
|
|
|
"{\n"
|
|
|
|
|
" \"transactions\": [\n"
|
|
|
|
|
" \"account\":\"accountname\", (string) DEPRECATED. The account name associated with the transaction. Will be \"\" for the default account.\n"
|
|
|
|
|
" \"address\":\"bitcoinaddress\", (string) The bitcoin address of the transaction. Not present for move transactions (category = move).\n"
|
|
|
|
|
" \"address\":\"bitcoinaddress\", (string) The blackcoin address of the transaction. Not present for move transactions (category = move).\n"
|
|
|
|
|
" \"category\":\"send|receive\", (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts.\n"
|
|
|
|
|
" \"amount\": x.xxx, (numeric) The amount in " + CURRENCY_UNIT + ". This is negative for the 'send' category, and for the 'move' category for moves \n"
|
|
|
|
|
" outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds.\n"
|
|
|
|
|
@@ -1728,7 +1728,7 @@ UniValue gettransaction(const UniValue& params, bool fHelp)
|
|
|
|
|
" \"details\" : [\n"
|
|
|
|
|
" {\n"
|
|
|
|
|
" \"account\" : \"accountname\", (string) DEPRECATED. The account name involved in the transaction, can be \"\" for the default account.\n"
|
|
|
|
|
" \"address\" : \"bitcoinaddress\", (string) The bitcoin address involved in the transaction\n"
|
|
|
|
|
" \"address\" : \"bitcoinaddress\", (string) The blackcoin address involved in the transaction\n"
|
|
|
|
|
" \"category\" : \"send|receive\", (string) The category, either 'send' or 'receive'\n"
|
|
|
|
|
" \"amount\" : x.xxx, (numeric) The amount in " + CURRENCY_UNIT + "\n"
|
|
|
|
|
" \"label\" : \"label\", (string) A comment for the address/transaction, if any\n"
|
|
|
|
|
@@ -1895,7 +1895,7 @@ UniValue walletpassphrase(const UniValue& params, bool fHelp)
|
|
|
|
|
throw runtime_error(
|
|
|
|
|
"walletpassphrase \"passphrase\" timeout staking\n"
|
|
|
|
|
"\nStores the wallet decryption key in memory for 'timeout' seconds.\n"
|
|
|
|
|
"This is needed prior to performing transactions related to private keys such as sending bitcoins\n"
|
|
|
|
|
"This is needed prior to performing transactions related to private keys such as sending blackcoins\n"
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. \"passphrase\" (string, required) The wallet passphrase\n"
|
|
|
|
|
"2. timeout (numeric, required) The time to keep the decryption key in seconds.\n"
|
|
|
|
|
@@ -2057,7 +2057,7 @@ UniValue encryptwallet(const UniValue& params, bool fHelp)
|
|
|
|
|
"\nExamples:\n"
|
|
|
|
|
"\nEncrypt you wallet\n"
|
|
|
|
|
+ HelpExampleCli("encryptwallet", "\"my pass phrase\"") +
|
|
|
|
|
"\nNow set the passphrase to use the wallet, such as for signing or sending bitcoin\n"
|
|
|
|
|
"\nNow set the passphrase to use the wallet, such as for signing or sending blackcoin\n"
|
|
|
|
|
+ HelpExampleCli("walletpassphrase", "\"my pass phrase\"") +
|
|
|
|
|
"\nNow we can so something like sign\n"
|
|
|
|
|
+ HelpExampleCli("signmessage", "\"bitcoinaddress\" \"test message\"") +
|
|
|
|
|
@@ -2092,7 +2092,7 @@ UniValue encryptwallet(const UniValue& params, bool fHelp)
|
|
|
|
|
// slack space in .dat files; that is bad if the old data is
|
|
|
|
|
// unencrypted private keys. So:
|
|
|
|
|
StartShutdown();
|
|
|
|
|
return "wallet encrypted; Bitcoin server stopping, restart to run with encrypted wallet. The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup.";
|
|
|
|
|
return "wallet encrypted; Blackcoin server stopping, restart to run with encrypted wallet. The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup.";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UniValue lockunspent(const UniValue& params, bool fHelp)
|
|
|
|
|
@@ -2106,7 +2106,7 @@ UniValue lockunspent(const UniValue& params, bool fHelp)
|
|
|
|
|
"\nUpdates list of temporarily unspendable outputs.\n"
|
|
|
|
|
"Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.\n"
|
|
|
|
|
"If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked.\n"
|
|
|
|
|
"A locked transaction output will not be chosen by automatic coin selection, when spending bitcoins.\n"
|
|
|
|
|
"A locked transaction output will not be chosen by automatic coin selection, when spending blackcoins.\n"
|
|
|
|
|
"Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list\n"
|
|
|
|
|
"is always cleared (by virtue of process exit) when a node stops or fails.\n"
|
|
|
|
|
"Also see the listunspent call\n"
|
|
|
|
|
@@ -2349,9 +2349,9 @@ UniValue listunspent(const UniValue& params, bool fHelp)
|
|
|
|
|
"\nArguments:\n"
|
|
|
|
|
"1. minconf (numeric, optional, default=1) The minimum confirmations to filter\n"
|
|
|
|
|
"2. maxconf (numeric, optional, default=9999999) The maximum confirmations to filter\n"
|
|
|
|
|
"3. \"addresses\" (string) A json array of bitcoin addresses to filter\n"
|
|
|
|
|
"3. \"addresses\" (string) A json array of blackcoin addresses to filter\n"
|
|
|
|
|
" [\n"
|
|
|
|
|
" \"address\" (string) bitcoin address\n"
|
|
|
|
|
" \"address\" (string) blackcoin address\n"
|
|
|
|
|
" ,...\n"
|
|
|
|
|
" ]\n"
|
|
|
|
|
"\nResult\n"
|
|
|
|
|
@@ -2359,7 +2359,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
|
|
|
|
|
" {\n"
|
|
|
|
|
" \"txid\" : \"txid\", (string) the transaction id \n"
|
|
|
|
|
" \"vout\" : n, (numeric) the vout value\n"
|
|
|
|
|
" \"address\" : \"address\", (string) the bitcoin address\n"
|
|
|
|
|
" \"address\" : \"address\", (string) the blackcoin address\n"
|
|
|
|
|
" \"account\" : \"account\", (string) DEPRECATED. The associated account, or \"\" for the default account\n"
|
|
|
|
|
" \"scriptPubKey\" : \"key\", (string) the script key\n"
|
|
|
|
|
" \"amount\" : x.xxx, (numeric) the transaction amount in " + CURRENCY_UNIT + "\n"
|
|
|
|
|
@@ -2394,7 +2394,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
|
|
|
|
|
const UniValue& input = inputs[idx];
|
|
|
|
|
CTxDestination address = DecodeDestination(input.get_str());
|
|
|
|
|
if (!IsValidDestination(address))
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid Bitcoin address: ")+input.get_str());
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid Blackcoin address: ")+input.get_str());
|
|
|
|
|
if (destinations.count(address))
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+input.get_str());
|
|
|
|
|
destinations.insert(address);
|
|
|
|
|
@@ -2467,7 +2467,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
|
|
|
|
|
"1. \"hexstring\" (string, required) The hex string of the raw transaction\n"
|
|
|
|
|
"2. options (object, optional)\n"
|
|
|
|
|
" {\n"
|
|
|
|
|
" \"changeAddress\" (string, optional, default pool address) The bitcoin address to receive the change\n"
|
|
|
|
|
" \"changeAddress\" (string, optional, default pool address) The blackcoin address to receive the change\n"
|
|
|
|
|
" \"changePosition\" (numeric, optional, default random) The index of the change output\n"
|
|
|
|
|
" \"includeWatching\" (boolean, optional, default false) Also select inputs which are watch only\n"
|
|
|
|
|
" \"lockUnspents\" (boolean, optional, default false) Lock selected unspent outputs\n"
|
|
|
|
|
@@ -2526,7 +2526,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
|
|
|
|
|
DecodeDestination(options["changeAddress"].get_str());
|
|
|
|
|
|
|
|
|
|
if (!IsValidDestination(dest)) {
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid bitcoin address");
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid blackcoin address");
|
|
|
|
|
|
|
|
|
|
changeAddress = dest;
|
|
|
|
|
}
|
|
|
|
|
|