Skip to content

Commit

Permalink
Merged in listtokentransactions-help (pull request dashpay#69)
Browse files Browse the repository at this point in the history
Update help for listtokentransactions

Approved-by: FornaxA
  • Loading branch information
ckti authored and FornaxA committed Jun 25, 2020
2 parents df85a74 + 79a7e03 commit f2b54aa
Showing 1 changed file with 24 additions and 54 deletions.
78 changes: 24 additions & 54 deletions src/tokens/rpctokenwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,80 +469,50 @@ extern UniValue listtokentransactions(const JSONRPCRequest& request)

if (request.fHelp || request.params.size() > 4)
throw std::runtime_error(
"listtokentransactions (\"groupid\" count from includeWatchonly )\n"
"\nReturns up to 'count' most recent transactions skipping the first 'from' transactions for account "
"'account'.\n"
"listtokentransactions (\"groupid\")\n"
"\nReturns transactions for given groupid.\n"
"\nArguments:\n"
"1. \"groupid\" (string, optional) the token group identifier. Specify \"*\" to return transactions from "
"all token groups\n"
"2. count (numeric, optional, default=10) The number of transactions to return\n"
"3. from (numeric, optional, default=0) The number of transactions to skip\n"
"4. includeWatchonly (bool, optional, default=false) Include transactions to watchonly addresses (see "
"'importaddress')\n"
"1. \"groupid\" (string, required) the token group identifier.\n"
"\nResult:\n"
"[\n"
" {\n"
" \"account\":\"accountname\", (string) DEPRECATED. The account name associated with the "
" \"account\":\"accountname\",(string) DEPRECATED. The account name associated with the "
"transaction. \n"
" It will be \"\" for the default account.\n"
" \"address\":\"ION address\", (string) The ION 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"
" transaction id or block. 'send' and 'receive' "
"transactions are \n"
" associated with an address, transaction id and block "
"details\n"
" \"tokenAmount\": x.xxx, (numeric) The amount of tokens. "
"This is negative for the 'send' category, and for the\n"
" 'move' category for moves outbound. It is "
"positive for the 'receive' category,\n"
" and for the 'move' category for inbound funds.\n"
" \"vout\": n, (numeric) the vout value\n"
" \"fee\": x.xxx, (numeric) The amount of the fee in "
"ION"
". This is negative and only available for the \n"
" \"address\":\"ION address\",(string) The ION address of the transaction. Not present for \n"
" \"category\": \"category\", (string) The token category\n"
" \"groupID\": \"groupid\", (string) The groupID of the token.\n"
" \"tokenType\": \"type\", (string) Type of token\n"
" \"tokenValue\": xxx, (numeric) The token value for the specified transaction\n"
" \"tokenValueSat\": n, (numeric) The token value in satoshis\n"
" \"vout\": n, (numeric) the vout value\n"
" \"fee\": x.xxx, (numeric) The amount of the fee in ION. "
"This is negative and only available for the \n"
" 'send' category of transactions.\n"
" \"confirmations\": n, (numeric) The number of confirmations for the transaction. Available for "
" \"confirmations\": n, (numeric) The number of confirmations for the transaction. Available for "
"'send' and \n"
" 'receive' category of transactions. Negative confirmations "
"indicate the\n"
" transaction conflicts with the block chain\n"
" \"trusted\": xxx (bool) Whether we consider the outputs of this unconfirmed transaction "
"safe to spend.\n"
" \"instantlock\": n, (boolean)\n"
" \"instantlock_internal\": n, (boolean)\n"
" \"chainlock\": n, (boolean)\n"
" \"blockhash\": \"hashvalue\", (string) The block hash containing the transaction. Available for "
"'send' and 'receive'\n"
" category of transactions.\n"
" \"blockindex\": n, (numeric) The index of the transaction in the block that includes it. "
" \"blockindex\": n, (numeric) The index of the transaction in the block that includes it. "
"Available for 'send' and 'receive'\n"
" category of transactions.\n"
" \"blocktime\": xxx, (numeric) The block time in seconds since epoch (1 Jan 1970 GMT).\n"
" \"txid\": \"transactionid\", (string) The transaction id. Available for 'send' and 'receive' category "
" \"blocktime\": xxx, (numeric) The block time in seconds since epoch (1 Jan 1970 GMT).\n"
" \"txid\": \"transactionid\",(string) The transaction id. Available for 'send' and 'receive' category "
"of transactions.\n"
" \"time\": xxx, (numeric) The transaction time in seconds since epoch (midnight Jan 1 "
"1970 GMT).\n"
" \"timereceived\": xxx, (numeric) The time received in seconds since epoch (midnight Jan 1 1970 "
"GMT). Available \n"
" for 'send' and 'receive' category of transactions.\n"
" \"comment\": \"...\", (string) If a comment is associated with the transaction.\n"
" \"label\": \"label\" (string) A comment for the address/transaction, if any\n"
" \"otheraccount\": \"accountname\", (string) For the 'move' category of transactions, the account the "
"funds came \n"
" from (for receiving funds, positive amounts), or went to (for "
"sending funds,\n"
" negative amounts).\n"
" \"abandoned\": xxx (bool) 'true' if the transaction has been abandoned (inputs are "
"respendable). Only available for the \n"
" 'send' category of transactions.\n"
" \"walletconflicts\": (array)\n"
" }\n"
"]\n"


"\nExamples:\n"
"\nList the most recent 10 transactions in the systems\n" +
HelpExampleCli("listtokentransactions", "") + "\nList transactions 100 to 120\n"
"\n"
"\nList transactions in a token group\n" +
HelpExampleCli("listtokentransactions", "groupid") + "\nList transactions for given groupid.\n"
);

LOCK2(cs_main, pwallet->cs_wallet);
Expand Down

0 comments on commit f2b54aa

Please sign in to comment.