LITECOIND(1)
๐ธ NAME ๐ธ
bestie. okay so. this is litecoind, the daemon half of Litecoin Core, and this whole page is its manual. The version we're talking about here? v0.21.4.0. That's it. That's the vibe. โจ
๐ฆ SYNOPSIS ๐ฆ
litecoind [options]
That line right there? That's the whole thing. You run litecoind, you hand it some options, and it Start Litecoin Core. Iconic behaviour, honestly. ๐
๐ DESCRIPTION ๐
The version string it's repping is literally:
Litecoin Core version v0.21.4.0-dirty
That's the whole description. Short, sweet, mysterious, main character energy. ๐
โจ OPTIONS โจ
Okay so here come the flags. There are a lot of them. Grab a snack. ๐
-?โ prints this exact help message and then dips out. That's it, that's the whole job. ๐-alertnotify=<cmd>โ run a command whenever a relevant alert lands or we spot a really long fork. Any%sin the command gets swapped out for the message. ๐ฃ-assumevalid=<hex>โ if this block is chilling in the chain, just assume it and all its ancestors are valid and maybe skip verifying their scripts entirely. Pass0if you wanna verify everything like a paranoid icon. The defaults are:- default:
80cdb35c080484df5bf384b311fde3c4694d3405765bc0f596e9eb369ff286e5 - testnet:
4a280c0e150e3b74ebe19618e6394548c8a39d5549fd9941b9c431c73822fbd5 - signet:
4a280c0e150e3b74ebe19618e6394548c8a39d5549fd9941b9c431c73822fbd5
- default:
-blockfilterindex=<type>โ keep an index of compact filters, organized by block (default:1, values:basic). If you don't pass a<type>, or you pass<type>=1, then congrats, indexes for all known types get enabled. ๐๏ธ-blocknotify=<cmd>โ run a command when the best block changes.%sin the command gets replaced with the block hash. ๐-blockreconstructionextratxn=<n>โ how many extra transactions to keep in memory for compact block reconstructions (default:100). ๐ง-blocksdir=<dir>โ tell it which directory should hold the blocks subdirectory for the*.datfiles (default:<datadir>). ๐-blocksonlyโ do we reject transactions from network peers? This is that switch. Automatic broadcast and rebroadcast of any transactions from inbound peers gets disabled โ unless the peer has the'forcerelay'permission. RPC transactions are not affected by any of this. (default:0) ๐ซ-conf=<file>โ path to a read-only configuration file. Relative paths get prefixed with the datadir location. (default:litecoin.conf) ๐-daemonโ go run in the background as a daemon and accept commands like the little ghost in the machine you are. ๐ป-datadir=<dir>โ specify the data directory. ๐-dbcache=<n>โ maximum database cache size,<n>MiB (4 to 16384, default:450). Bonus: unused mempool memory gets shared into this cache too (go peek at-maxmempool). ๐พ-debuglogfile=<file>โ where the debug log file lives. Relative paths get prefixed by a net-specific datadir location. (-nodebuglogfiledisables it; default:debug.log) ๐ชต-includeconf=<file>โ specify an additional configuration file, relative to the-datadirpath. Heads up: this one's only useable from a configuration file, not from the command line. ๐-loadblock=<file>โ imports blocks from an external file on startup. ๐ฅ-maxmempool=<n>โ keep the transaction memory pool under<n>megabytes (default:300). ๐-maxorphantx=<n>โ keep at most<n>unconnectable transactions in memory (default:100). ๐งฉ-mempoolexpiry=<n>โ don't let transactions sit in the mempool longer than<n>hours (default:336). โณ-par=<n>โ set the number of script verification threads (-64 to 15,0= auto,<0= leave that many cores free, default:0). ๐งต-persistmempoolโ save the mempool on shutdown and load it back on restart, yes or no (default:1). ๐ฝ-pid=<file>โ specify the pid file. Relative paths get prefixed by a net-specific datadir location. (default:litecoind.pid) ๐ข-prune=<n>โ cut down on storage by enabling pruning (deleting) of old blocks. This lets you call thepruneblockchainRPC to delete specific blocks, and it enables automatic pruning of old blocks if you give it a target size in MiB. This mode is incompatible with-txindexand-rescan. (default:0= disable pruning blocks,1= allow manual pruning via RPC,>=550= automatically prune block files to stay under the specified target size in MiB)
โ ๏ธ WARNING bestie: reverting this setting means re-downloading the entire blockchain. The whole thing. All of it. Think before you prune. ๐ญ
-reindexโ rebuild chain state and block index from theblk*.datfiles sitting on disk. ๐-reindex-chainstateโ rebuild chain state from the currently indexed blocks. But if you're in pruning mode, or the blocks on disk might be corrupted? Use the full-reindexinstead. ๐ ๏ธ-settings=<file>โ path to the dynamic settings data file. You can turn it off with-nosettings. This file gets written at runtime and is not meant for users to edit (uselitecoin.confinstead for your custom settings, bestie). Relative paths get prefixed with the datadir location. (default:settings.json) โ๏ธ-startupnotify=<cmd>โ run a command on startup. ๐-syspermsโ create new files with system default permissions instead ofumask 077. Note: this is only effective with disabled wallet functionality. ๐-txindexโ maintain a full transaction index, which is what thegetrawtransactionRPC call uses (default:0). ๐-versionโ print the version and exit. โ๏ธ
๐ Connection options: ๐
-addnode=<ip>โ add a node to connect to and try to keep that connection open (go read theaddnodeRPC command help for more info). You can pass this option multiple times to add multiple nodes. ๐ซ-asmap=<file>โ specify the asn mapping used for bucketing the peers (default:ip_asn.map). Relative paths get prefixed by the net-specific datadir location. ๐บ๏ธ-bantime=<n>โ default duration (in seconds) of manually configured bans (default:86400). ๐ท-bind=<addr>[:<port>][=onion]โ bind to the given address and always listen on it (default:0.0.0.0). Use[host]:portnotation for IPv6. Append=onionto tag any incoming connections to that address and port as incoming Tor connections (default:127.0.0.1:9333=onion, testnet:127.0.0.1:19335=onion, signet:127.0.0.1:39335=onion, regtest:127.0.0.1:19444=onion). ๐ง-connect=<ip>โ connect only to the specified node;-noconnectdisables automatic connections (the rules for this peer are the same as for-addnode). You can pass this multiple times to connect to multiple nodes. ๐ฏ-discoverโ discover your own IP addresses (default:1when listening and there's no-externalipor-proxy). ๐ต๏ธ-dnsโ allow DNS lookups for-addnode,-seednodeand-connect(default:1). ๐-dnsseedโ query for peer addresses via DNS lookup if you're running low on addresses (default:1unless-connectis used). ๐ฑ-externalip=<ip>โ specify your own public address. ๐ข-forcednsseedโ always query for peer addresses via DNS lookup (default:0). ๐ซ-listenโ accept connections from outside (default:1if no-proxyor-connect). ๐-listenonionโ automatically create a Tor onion service (default:1). ๐ง-maxconnections=<n>โ maintain at most<n>connections to peers (default:125). ๐ค-maxreceivebuffer=<n>โ maximum per-connection receive buffer,<n>*1000 bytes (default:5000). ๐จ-maxsendbuffer=<n>โ maximum per-connection send buffer,<n>*1000 bytes (default:1000). ๐ค-maxtimeadjustmentโ maximum allowed median peer time offset adjustment. Your local perspective of time may get nudged forward or backward by peers by this amount. (default:2100seconds) ๐ฐ๏ธ-maxuploadtarget=<n>โ tries to keep outbound traffic under the given target (in MiB per 24h). The limit does not apply to peers with'download'permission.0= no limit (default:0). ๐-networkactiveโ enable all P2P network activity (default:1). Can be changed by thesetnetworkactiveRPC command. ๐ก-onion=<ip:port>โ use a separate SOCKS5 proxy to reach peers via Tor onion services. Set-noonionto disable (default:-proxy). ๐ง-onlynet=<net>โ make outgoing connections only through network<net>(ipv4,ipv6oronion). Incoming connections are not affected by this option. You can specify it multiple times to allow multiple networks. ๐-peerblockfiltersโ serve compact block filters to peers per BIP 157 (default:1). ๐งฎ-peerbloomfiltersโ support filtering of blocks and transaction with bloom filters (default:0). ๐ธ-permitbaremultisigโ relay non-P2SH multisig (default:1). โ๏ธ-port=<port>โ listen for connections on<port>. Nodes not using the default ports (default:9333, testnet:19335, signet:19335, regtest:19444) are unlikely to get incoming connections. ๐ช-proxy=<ip:port>โ connect through a SOCKS5 proxy, set-noproxyto disable (default: disabled). ๐งฆ-proxyrandomizeโ randomize credentials for every proxy connection. This enables Tor stream isolation (default:1). ๐ฒ-seednode=<ip>โ connect to a node to retrieve peer addresses, then disconnect. You can pass this multiple times to connect to multiple nodes. ๐พ-timeout=<n>โ specify connection timeout in milliseconds (minimum:1, default:5000). โฑ๏ธ-torcontrol=<ip>:<port>โ Tor control port to use if onion listening is enabled (default:127.0.0.1:9051). ๐๏ธ-torpassword=<pass>โ Tor control port password (default: empty). ๐-upnpโ use UPnP to map the listening port (default:0). ๐ก-whitebind=<[permissions@]addr>โ bind to the given address and slap permission flags onto the peers connecting to it. Use[host]:portnotation for IPv6. Allowed permissions are:bloomfilterโ allow requesting BIP37 filtered blocks and transactionsnobanโ do not ban for misbehavior; impliesdownloadforcerelayโ relay transactions that are already in the mempool; impliesrelayrelayโ relay even in-blocksonlymode, and unlimited transaction announcementsmempoolโ allow requesting BIP35 mempool contentsdownloadโ allowgetheadersduring IBD, no disconnect aftermaxuploadtargetlimitaddrโ responses toGETADDRavoid hitting the cache and contain random records with the most up-to-date info
Specify multiple permissions separated by commas (default: download,noban,mempool,relay). Can be specified multiple times. ๐ท๏ธ
-whitelist=<[permissions@]IP address or network>โ add permission flags to the peers connecting from the given IP address (e.g.1.2.3.4) or CIDR-notated network (e.g.1.2.3.0/24). Uses the exact same permissions as-whitebind. Can be specified multiple times. โ
๐ Wallet options: ๐
-addresstype
โฆand okay so that's literally where the source hands off to the next chunk โ the wallet options have only just started, there's so much more coming. ๐โจ
the kind of addresses you wanna use โ "legacy", "p2sh-segwit", or "bech32" (default: "bech32") โจ
-avoidpartialspendsโ group outputs by address, so it's all of them or none of them, instead of picking per-output. Privacy goes ๐ because an address only gets used once (unless someone sends to it after you've spent from it), but ngl it can bump your fees a lil because the added limitation can make coin selection suboptimal (default:0โ always enabled for wallets with"avoid_reuse"enabled) ๐ซถ-changetypeโ what type of change to use ("legacy","p2sh-segwit", or"bech32"). Default is the same as-addresstype, except when-addresstype=p2sh-segwita native segwit output is used when sending to a native segwit address ๐-disablewalletโ don't load the wallet, and disable wallet RPC calls. bye bestie ๐-discardfee=<amt>โ the fee rate (in LTC/kB) that says how much you're willing to tolerate discarding change by just adding it to the fee (default:0.0001). Note: an output gets discarded if it's dust at this rate, but we will always discard up to the dust relay fee, and a discard fee above that is limited by the fee estimate for the longest target ๐ง-fallbackfee=<amt>โ a fee rate (in LTC/kB) that gets used when fee estimation has insufficient data.0to entirely disable the fallbackfee feature (default:0.002) ๐ธ-keypool=<n>โ set key pool size to<n>(default:1000). > Warning: smaller sizes may increase the risk of losing funds when restoring from an old backup, if none of the addresses in the original keypool have been used. this one's serious, bestie ๐ญ-maxapsfee=<n>โ spend up to this amount in additional (absolute) fees (in LTC) if it lets you use partial spend avoidance (default:0.00) ๐-mintxfee=<amt>โ fees (in LTC/kB) smaller than this are considered zero fee for transaction creation (default:0.0001) โญ-paytxfee=<amt>โ fee (in LTC/kB) to add to transactions you send (default:0.00) ๐ธ-rescanโ rescan the block chain for missing wallet transactions on startup ๐-spendzeroconfchangeโ spend unconfirmed change when sending transactions (default:1) ๐ฆ-txconfirmtarget=<n>โ if paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default:6) โณ-wallet=<path>โ specify wallet path to load at startup. Can be used multiple times to load multiple wallets. The path is to a directory containing wallet data and log files. If the path isn't absolute, it's interpreted relative to<walletdir>. This only loads existing wallets and does not create new ones. For backwards compatibility this also accepts names of existing top-level data files in<walletdir>๐-walletbroadcastโ make the wallet broadcast transactions (default:1) ๐ก-walletdir=<dir>โ specify directory to hold wallets (default:<datadir>/walletsif it exists, otherwise<datadir>) ๐-walletnotify=<cmd>โ execute command when a wallet transaction changes.%sin cmd is replaced by TxID and%wis replaced by wallet name.%wis not currently implemented on windows. On systems where%wis supported, it should NOT be quoted because this would break shell escaping used to invoke the command ๐ซถ-walletrbfโ send transactions with full-RBF opt-in enabled (RPC only, default:0) ๐ฅ
๐ก ZeroMQ notification options: ๐ก
-zmqpubhashblock=<address>โ enable publish hash block in<address>๐-zmqpubhashblockhwm=<n>โ set publish hash block outbound message high water mark (default:1000) ๐-zmqpubhashtx=<address>โ enable publish hash transaction in<address>๐-zmqpubhashtxhwm=<n>โ set publish hash transaction outbound message high water mark (default:1000) ๐-zmqpubrawblock=<address>โ enable publish raw block in<address>๐-zmqpubrawblockhwm=<n>โ set publish raw block outbound message high water mark (default:1000) ๐-zmqpubrawtx=<address>โ enable publish raw transaction in<address>๐-zmqpubrawtxhwm=<n>โ set publish raw transaction outbound message high water mark (default:1000) ๐-zmqpubsequence=<address>โ enable publish hash block and tx sequence in<address>๐-zmqpubsequencehwm=<n>โ set publish hash sequence message high water mark (default:1000) ๐
๐ Debugging/Testing options: ๐
-debug=<category>โ output debugging information (default:-nodebug, supplying<category>is optional). If<category>is not supplied, or if<category>=1, output all debugging information.<category>can be:net,tor,mempool,http,bench,zmq,walletdb,rpc,estimatefee,addrman,selectcoins,reindex,cmpctblock,rand,prune,proxy,mempoolrej,libevent,coindb,qt,leveldb,validation๐-debugexclude=<category>โ exclude debugging information for a category. Can be used in conjunction with-debug=1to output debug logs for all categories except one or more specified categories ๐-help-debugโ print help message with debugging options and exit ๐ช-logipsโ include IP addresses in debug output (default:0) ๐-logthreadnamesโ prepend debug output with name of the originating thread (only available on platforms supportingthread_local) (default:0) ๐งต-logtimestampsโ prepend debug output with timestamp (default:1) โฐ-maxtxfee=<amt>โ maximum total fees (in LTC) to use in a single wallet transaction; setting this too low may abort large transactions (default:0.10) โ ๏ธ-printtoconsoleโ send trace/debug info to console (default:1when no-daemon. To disable logging to file, set-nodebuglogfile) ๐จ๏ธ-shrinkdebugfileโ shrinkdebug.logfile on client startup (default:1when no-debug) ๐ช-uacomment=<cmt>โ append comment to the user agent string ๐ฌ
โ๏ธ 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. ๐งช
๐ฎ Node relay options: ๐ฎ
-bytespersigopโ equivalent bytes per sigop in transactions for relay and mining (default:20) ๐ข-datacarrierโ relay and mine data carrier transactions (default:1) ๐-datacarriersizeโ maximum size of data in data carrier transactions we relay and mine (default:83) ๐-mempoolreplacementโ enable transaction replacement in the memory pool (default:0) ๐-minrelaytxfee=<amt>โ fees (in LTC/kB) smaller than this are considered zero fee for relaying, mining and transaction creation (default:0.00001) ๐-whitelistforcerelayโ add'forcerelay'permission to whitelisted inbound peers with default permissions. This will relay transactions even if the transactions were already in the mempool. (default:0) ๐ฃ-whitelistrelayโ add'relay'permission to whitelisted inbound peers with default permissions. This will accept relayed transactions even when not relaying transactions (default:1) ๐ฌ
๐งฑ Block creation options: ๐งฑ
-blockmaxweight=<n>โ set maximum BIP141 block weight (default:3996000) ๐๏ธ-blockmintxfee=<amt>โ set lowest fee rate (in LTC/kB) for transactions to be included in block creation. (default:0.00001) ๐ช
๐ฅ๏ธ RPC server options: ๐ฅ๏ธ
-restโ accept public REST requests (default:0) ๐๏ธ-rpcallowip=<ip>โ allow JSON-RPC connections from specified source. Valid for<ip>are a single IP (e.g.1.2.3.4), a network/netmask (e.g.1.2.3.4/255.255.255.0) or a network/CIDR (e.g.1.2.3.4/24). This option can be specified multiple times โ-rpcauth=<userpw>โ username and HMAC-SHA-256 hashed password for JSON-RPC connections. The field<userpw>comes in the format:<USERNAME>:<SALT>$<HASH>. A canonical python script is included inshare/rpcauth. The client then connects normally using therpcuser=<USERNAME>/rpcpassword=<PASSWORD>pair of arguments. This option can be specified multiple times ๐-rpcbind=<addr>[:port]โ bind to given address to listen for JSON-RPC connections. > Do not expose the RPC server to untrusted networks such as the public internet! fr fr, do not do this ๐ญ This option is ignored unless-rpcallowipis also passed. Port is optional and overrides-rpcport. Use[host]:portnotation for IPv6. This option can be specified multiple times (default:127.0.0.1and::1i.e., localhost) ๐-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 ๐-rpcport=<port>โ listen for JSON-RPC connections on<port>(default:9332, testnet:19332, signet:39332, regtest:19443) ๐-rpcserialversionโ sets the serialization of raw transaction or block hex returned in non-verbose mode, non-segwit(0) or segwit(1) (default:2) ๐งฌ-rpcthreads=<n>โ set the number of threads to service RPC calls (default:4) ๐ง-rpcuser=<user>โ username for JSON-RPC connections ๐-rpcwhitelist=<whitelist>โ set a whitelist to filter incoming RPC calls for a specific user. The field<whitelist>comes in the format:<USERNAME>:<rpc 1>,<rpc 2>,...,<rpc n>. If multiple whitelists are set for a given user, they are set-intersected. See-rpcwhitelistdefaultdocumentation for information on default whitelist behavior ๐-rpcwhitelistdefault-rpcwhitelistdefaultโ sets the default vibe for rpc whitelisting, bestie. Unlessrpcwhitelistdefaultis set to0, if any-rpcwhitelistis set, the rpc server acts like all rpc users are subject to empty-unless-otherwise-specified whitelists. And ifrpcwhitelistdefaultis set to1and no-rpcwhitelistis set, the rpc server acts like all rpc users are subject to empty whitelists. yeah. that's the whole thing. gatekeeping but make it configurable ๐-serverโ accept command line and JSON-RPC commands. that's it, that's the option, she's simple and she serves ๐ซถ
๐ COPYRIGHT ๐
okay legal era, but make it cute. Copyright (C) 2011-2024 The Litecoin Core developers. Copyright (C) 2009-2024 The Bitcoin Core developers.
If you find Litecoin Core useful, please contribute!! like genuinely, the devs are asking nicely ๐ฅบ Visit <https://litecoin.org/> for further information about the software. The source code is available from <https://github.com/litecoin-project/litecoin>. go look. go read. go maybe open a PR, no pressure tho ๐ธ
โ ๏ธ real talk: this is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or <https://opensource.org/licenses/MIT>. experimental means experimental, bestie, don't put your whole life savings on a vibe, iykyk ๐
and that's the whole page, we ate and left no crumbs ๐ this was litecoind v0.21.4.0, dated October 2024, and yes the footer literally says LITECOIND(1) because it's the man page for litecoind and she knows exactly who she is ๐ mwah, go run a node, ily, bye โจ๐ฆ
๐ฆ 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