LITECOIN-CLI(1)
π NAME π
litecoin-cli β the manual page for litecoin-cli v0.21.4.0, bestie. It's the little command-line bestie that talks to your Litecoin Core node so you don't have to. No cap.
β¨ SYNOPSIS β¨
litecoin-cli [options] <command> [params] Send command to Litecoin Core
litecoin-cli [options] -named <command> [name=value]... Send command to
Litecoin Core (with named arguments)
litecoin-cli [options] help List commands
litecoin-cli [options] help <command> Get help for a command
So like, four whole ways to pull up: throw a <command> at it with plain <params>, do the same but with -named so you can pass [name=value]... like a civilized person, or just yell help to get the full list of commands, or help <command> to get the 411 on one specific command. Pick your fighter π
πΈ DESCRIPTION πΈ
Litecoin Core RPC client version v0.21.4.0-dirty. That's it, that's the vibe. It's the RPC client, it's version v0.21.4.0, and yes it says dirty because that's literally what the version string says and I am NOT editing that. π«Ά
π OPTIONS π
-?β Print this help message and exit. The classic "help me I'm lost" move, and honestly? Same.-conf=<file>β Specify configuration file. Relative paths will be prefixed by datadir location. (default:litecoin.conf)-datadir=<dir>β Specify data directory. Where all your little files live π¦-generateβ Generate blocks immediately, equivalent to RPCgeneratenewaddressfollowed by RPCgeneratetoaddress. Optional positional integer arguments are number of blocks to generate (default:1) and maximum iterations to try (default:1000000), equivalent to RPCgeneratetoaddressnblocksandmaxtriesarguments. Example:litecoin-cli -generate 4 1000
okay so this one is doing the MOST. It's literally two RPCs in a trench coat. Also note the default iterations is one million β she's thorough, she's committed, she's iconic β¨
-getinfoβ Get general information from the remote server. Note that unlike server-side RPC calls, the results of-getinfois the result of multiple non-atomic requests. Some entries in the result may represent results from different states (e.g. wallet balance may be as of a different block from the chain state reported)
Careful bestie β non-atomic means the numbers you get back might not all be from the exact same moment in time. Wallet balance and chain state could be from different blocks. It's giving "photo taken 0.3 seconds apart" energy. π
-namedβ Pass named instead of positional arguments (default:false)-netinfoβ Get network peer connection information from the remote server. An optional integer argument from0to4can be passed for different peers listings (default:0). Peer gossip time π-rpcclienttimeout=<n>β Timeout in seconds during HTTP requests, or0for no timeout. (default:900)-rpcconnect=<ip>β Send commands to node running on<ip>(default:127.0.0.1)-rpccookiefile=<loc>β Location of the auth cookie. Relative paths will be prefixed by a net-specific datadir location. (default: data dir)-rpcpassword=<pw>β Password for JSON-RPC connections. Guard this with your life fr fr π-rpcport=<port>β Connect to JSON-RPC on<port>(default:9332, testnet:19332, signet:39332, regtest:19443)-rpcuser=<user>β Username for JSON-RPC connections-rpcwaitβ Wait for RPC server to start. She's patient, she'll wait at the door like a good friend π«Ά-rpcwallet=<walletname>β Send RPC for non-default wallet on RPC server (needs to exactly match corresponding-walletoption passed tolitecoind). This changes the RPC endpoint used, e.g.http://127.0.0.1:8332/wallet/<walletname>
EXACTLY match. Not "close enough", not "vibes similar" β exact. Otherwise it's not gonna work and you're gonna be sad. π
-stdinβ Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases). When combined with-stdinrpcpass, the first line from standard input is used for the RPC password.-stdinrpcpassβ Read RPC password from standard input as a single line. When combined with-stdin, the first line from standard input is used for the RPC password. When combined with-stdinwalletpassphrase,-stdinrpcpassconsumes the first line, and-stdinwalletpassphraseconsumes the second.
Line order matters!! First line = RPC password, second line = wallet passphrase. Do not swap them, I'm begging. π
-stdinwalletpassphraseβ Read wallet passphrase from standard input as a single line. When combined with-stdin, the first line from standard input is used for the wallet passphrase.-versionβ Print version and exit
π§ͺ Debugging/Testing options: π§ͺ
lowkey the testing corner of the house, no shade, very useful π
βοΈ Chain selection options: βοΈ
-chain=<chain>β Use the chain<chain>(default:main). Allowed values:main,test,signet,regtest-signetβ Use the signet chain. Equivalent to-chain=signet. Note that the network is defined by the-signetchallengeparameter-signetchallengeβ Blocks must satisfy the given script to be considered valid (only for signet networks; defaults to the global default signet test network challenge)-signetseednodeβ Specify a seed node for the signet network, in thehostname[:port]format, e.g.sig.net:1234(may be used multiple times to specify multiple seed nodes; defaults to the global default signet test network seed node(s))-testnetβ Use the test chain. Equivalent to-chain=test. Test chain gang where u at π
π COPYRIGHT π
Copyright (C) 2011-2024 The Litecoin Core developers Copyright (C) 2009-2024 The Bitcoin Core developers
Please contribute if you find Litecoin Core useful. Visit <https://litecoin.org/> for further information about the software. The source code is available from <https://github.com/litecoin-project/litecoin>.
This is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or <https://opensource.org/licenses/MIT>
say it with me: this is experimental software. Respect the warning bestie, she's not being dramatic, she's being honest. π
and that's the whole page, no notes, you ate π β¨
mwah π this was litecoin-cli v0.21.4.0, dated October 2024 β go be the main character of your own node, iykyk π
π¦ where this page comes from
- debian trixie: litecoind 0.21.4-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms