{
  "sendtoaddress": "sendtoaddress \"address\" amount ( \"comment\" \"comment_to\" subtractfeefromamount replaceable conf_target \"estimate_mode\" avoid_reuse fee_rate verbose )\n\nSend an amount to a given address.\nRequires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.\n\nArguments:\n1. address                  (string, required) The litecoin address to send to.\n2. amount                   (numeric or string, required) The amount in LTC to send. eg 0.1\n3. 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.\n4. comment_to               (string, optional) A comment to store the name of the person or organization\n                            to which you're sending the transaction. This is not part of the \n                            transaction, just kept in your wallet.\n5. 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.\n6. replaceable              (boolean, optional, default=wallet default) Allow this transaction to be replaced by a transaction with higher fees via BIP 125\n7. conf_target              (numeric, optional, default=wallet -txconfirmtarget) Confirmation target in blocks\n8. estimate_mode            (string, optional, default=unset) The fee estimate mode, must be one of (case insensitive):\n                            \"unset\"\n                            \"economical\"\n                            \"conservative\"\n9. avoid_reuse              (boolean, optional, default=true) (only available if avoid_reuse wallet flag is set) Avoid spending from dirty addresses; addresses are considered\n                            dirty if they have previously been used in a transaction.\n10. fee_rate                (numeric or string, optional, default=not set, fall back to wallet fee estimation) Specify a fee rate in sat/vB.\n11. verbose                 (boolean, optional, default=false) If true, return extra information about the transaction.\n\nResult (if verbose is not set or set to false):\n\"hex\"    (string) The transaction id.\n\nResult (if verbose is set to true):\n{                          (json object)\n  \"txid\" : \"hex\",          (string) The transaction id.\n  \"fee reason\" : \"str\"     (string) The transaction fee reason.\n}\n\nExamples:\n\nSend 0.1 BTC\n> litecoin-cli sendtoaddress \"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" 0.1\n\nSend 0.1 BTC with a confirmation target of 6 blocks in economical fee estimate mode using positional arguments\n> litecoin-cli sendtoaddress \"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" 0.1 \"donation\" \"sean's outpost\" false true 6 economical\n\nSend 0.1 BTC with a fee rate of 1.1 sat/vB, subtract fee from amount, BIP125-replaceable, using positional arguments\n> litecoin-cli sendtoaddress \"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" 0.1 \"drinks\" \"room77\" true true null \"unset\" null 1.1\n\nSend 0.2 BTC with a confirmation target of 6 blocks in economical fee estimate mode using named arguments\n> litecoin-cli -named sendtoaddress address=\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" amount=0.2 conf_target=6 estimate_mode=\"economical\"\n\nSend 0.5 BTC with a fee rate of 25 sat/vB using named arguments\n> litecoin-cli -named sendtoaddress address=\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" amount=0.5 fee_rate=25\n> litecoin-cli -named sendtoaddress address=\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" amount=0.5 fee_rate=25 subtractfeefromamount=false replaceable=true avoid_reuse=true comment=\"2 pizzas\" comment_to=\"jeremy\" verbose=true",
  "sendrawtransaction": "sendrawtransaction \"hexstring\" ( maxfeerate )\n\nSubmit a raw transaction (serialized, hex-encoded) to local node and network.\n\nNote that the transaction will be sent unconditionally to all peers, so using this\nfor manual rebroadcast may degrade privacy by leaking the transaction's origin, as\nnodes will normally not rebroadcast non-wallet transactions already in their mempool.\n\nAlso see createrawtransaction and signrawtransactionwithkey calls.\n\nArguments:\n1. hexstring     (string, required) The hex string of the raw transaction\n2. maxfeerate    (numeric or string, optional, default=0.10) Reject transactions whose fee rate is higher than the specified value, expressed in LTC/kB.\n                 Set to 0 to accept any fee rate.\n                 \n\nResult:\n\"hex\"    (string) The transaction hash in hex\n\nExamples:\n\nCreate a transaction\n> litecoin-cli createrawtransaction \"[{\\\"txid\\\" : \\\"mytxid\\\",\\\"vout\\\":0}]\" \"{\\\"myaddress\\\":0.01}\"\nSign the transaction, and get back the hex\n> litecoin-cli signrawtransactionwithwallet \"myhex\"\n\nSend the transaction (signed hex)\n> litecoin-cli sendrawtransaction \"signedhex\"\n\nAs a JSON-RPC call\n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", \"method\": \"sendrawtransaction\", \"params\": [\"signedhex\"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/",
  "gettransaction": "gettransaction \"txid\" ( include_watchonly verbose )\n\nGet detailed information about in-wallet transaction <txid>\n\nArguments:\n1. txid                 (string, required) The transaction id\n2. include_watchonly    (boolean, optional, default=true for watch-only wallets, otherwise false) Whether to include watch-only addresses in balance calculation and details[]\n3. verbose              (boolean, optional, default=false) Whether to include a `decoded` field containing the decoded transaction (equivalent to RPC decoderawtransaction)\n\nResult:\n{                                          (json object)\n  \"amount\" : n,                            (numeric) The amount in LTC\n  \"fee\" : n,                               (numeric) The amount of the fee in LTC. This is negative and only available for the\n                                           'send' category of transactions.\n  \"confirmations\" : n,                     (numeric) The number of confirmations for the transaction. Negative confirmations means the\n                                           transaction conflicted that many blocks ago.\n  \"generated\" : true|false,                (boolean) Only present if transaction only input is a coinbase one.\n  \"trusted\" : true|false,                  (boolean) Only present if we consider transaction to be trusted and so safe to spend from.\n  \"blockhash\" : \"hex\",                     (string) The block hash containing the transaction.\n  \"blockheight\" : n,                       (numeric) The block height containing the transaction.\n  \"blockindex\" : n,                        (numeric) The index of the transaction in the block that includes it.\n  \"blocktime\" : xxx,                       (numeric) The block time expressed in UNIX epoch time.\n  \"txid\" : \"hex\",                          (string) The transaction id.\n  \"walletconflicts\" : [                    (json array) Conflicting transaction ids.\n    \"hex\",                                 (string) The transaction id.\n    ...\n  ],\n  \"time\" : xxx,                            (numeric) The transaction time expressed in UNIX epoch time.\n  \"timereceived\" : xxx,                    (numeric) The time received expressed in UNIX epoch time.\n  \"comment\" : \"str\",                       (string) If a comment is associated with the transaction, only present if not empty.\n  \"bip125-replaceable\" : \"str\",            (string) (\"yes|no|unknown\") Whether this transaction could be replaced due to BIP125 (replace-by-fee);\n                                           may be unknown for unconfirmed transactions not in the mempool\n  \"details\" : [                            (json array)\n    {                                      (json object)\n      \"involvesWatchonly\" : true|false,    (boolean) Only returns true if imported addresses were involved in transaction.\n      \"address\" : \"str\",                   (string) The litecoin address involved in the transaction.\n      \"category\" : \"str\",                  (string) The transaction category.\n                                           \"send\"                  Transactions sent.\n                                           \"receive\"               Non-coinbase transactions received.\n                                           \"generate\"              Coinbase transactions received with more than 100 confirmations.\n                                           \"immature\"              Coinbase transactions received with 100 or fewer confirmations.\n                                           \"orphan\"                Orphaned coinbase transactions received.\n      \"amount\" : n,                        (numeric) The amount in LTC\n      \"label\" : \"str\",                     (string) A comment for the address/transaction, if any\n      \"vout\" : n,                          (numeric) the vout value\n      \"fee\" : n,                           (numeric) The amount of the fee in LTC. This is negative and only available for the \n                                           'send' category of transactions.\n      \"abandoned\" : true|false             (boolean) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the \n                                           'send' category of transactions.\n    },\n    ...\n  ],\n  \"hex\" : \"hex\",                           (string) Raw data for transaction\n  \"decoded\" : {                            (json object) Optional, the decoded transaction (only present when `verbose` is passed)\n    ...                                    Equivalent to the RPC decoderawtransaction method, or the RPC getrawtransaction method when `verbose` is passed.\n  }\n}\n\nExamples:\n> litecoin-cli gettransaction \"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\"\n> litecoin-cli gettransaction \"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\" true\n> litecoin-cli gettransaction \"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\" false true\n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", \"method\": \"gettransaction\", \"params\": [\"1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d\"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/",
  "getreceivedbyaddress": "getreceivedbyaddress \"address\" ( minconf )\n\nReturns the total amount received by the given address in transactions with at least minconf confirmations.\n\nArguments:\n1. address    (string, required) The litecoin address for transactions.\n2. minconf    (numeric, optional, default=1) Only include transactions confirmed at least this many times.\n\nResult:\nn    (numeric) The total amount in LTC received at this address.\n\nExamples:\n\nThe amount from transactions with at least 1 confirmation\n> litecoin-cli getreceivedbyaddress \"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\"\n\nThe amount including unconfirmed transactions, zero confirmations\n> litecoin-cli getreceivedbyaddress \"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" 0\n\nThe amount with at least 6 confirmations\n> litecoin-cli getreceivedbyaddress \"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\" 6\n\nAs a JSON-RPC call\n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", \"method\": \"getreceivedbyaddress\", \"params\": [\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\", 6]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/",
  "listunspent": "listunspent ( minconf maxconf [\"address\",...] include_unsafe query_options )\n\nReturns array of unspent transaction outputs\nwith between minconf and maxconf (inclusive) confirmations.\nOptionally filter to only include txouts paid to specified addresses.\n\nArguments:\n1. minconf                            (numeric, optional, default=1) The minimum confirmations to filter\n2. maxconf                            (numeric, optional, default=9999999) The maximum confirmations to filter\n3. addresses                          (json array, optional, default=empty array) The litecoin addresses to filter\n     [\n       \"address\",                     (string) litecoin address\n       ...\n     ]\n4. include_unsafe                     (boolean, optional, default=true) Include outputs that are not safe to spend\n                                      See description of \"safe\" attribute below.\n5. query_options                      (json object, optional) JSON with query options\n     {\n       \"minimumAmount\": amount,       (numeric or string, optional, default=0) Minimum value of each UTXO in LTC\n       \"maximumAmount\": amount,       (numeric or string, optional, default=unlimited) Maximum value of each UTXO in LTC\n       \"maximumCount\": n,             (numeric, optional, default=unlimited) Maximum number of UTXOs\n       \"minimumSumAmount\": amount,    (numeric or string, optional, default=unlimited) Minimum sum value of all UTXOs in LTC\n     }\n\nResult:\n[                                (json array)\n  {                              (json object)\n    \"txid\" : \"hex\",              (string) the transaction id\n    \"vout\" : n,                  (numeric) the vout value\n    \"address\" : \"str\",           (string) the litecoin address\n    \"label\" : \"str\",             (string) The associated label, or \"\" for the default label\n    \"scriptPubKey\" : \"str\",      (string) the script key\n    \"amount\" : n,                (numeric) the transaction output amount in LTC\n    \"confirmations\" : n,         (numeric) The number of confirmations\n    \"redeemScript\" : \"hex\",      (string) The redeemScript if scriptPubKey is P2SH\n    \"witnessScript\" : \"str\",     (string) witnessScript if the scriptPubKey is P2WSH or P2SH-P2WSH\n    \"spendable\" : true|false,    (boolean) Whether we have the private keys to spend this output\n    \"solvable\" : true|false,     (boolean) Whether we know how to spend this output, ignoring the lack of keys\n    \"reused\" : true|false,       (boolean) (only present if avoid_reuse is set) Whether this output is reused/dirty (sent to an address that was previously spent from)\n    \"desc\" : \"str\",              (string) (only when solvable) A descriptor for spending this output\n    \"safe\" : true|false          (boolean) Whether this output is considered safe to spend. Unconfirmed transactions\n                                 from outside keys and unconfirmed replacement transactions are considered unsafe\n                                 and are not eligible for spending by fundrawtransaction and sendtoaddress.\n  },\n  ...\n]\n\nExamples:\n> litecoin-cli listunspent \n> litecoin-cli listunspent 6 9999999 \"[\\\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\\\",\\\"bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\\\"]\"\n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", \"method\": \"listunspent\", \"params\": [6, 9999999 \"[\\\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\\\",\\\"bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\\\"]\"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n> litecoin-cli listunspent 6 9999999 '[]' true '{ \"minimumAmount\": 0.005 }'\n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", \"method\": \"listunspent\", \"params\": [6, 9999999, [] , true, { \"minimumAmount\": 0.005 } ]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/"
}
