LITECOIN-QT(1)

πŸ“¦
version 0.21.4 Β· 2 versions
, in debian trixie

πŸ’– LITECOIN-QT(1) πŸ’–

okay bestie, welcome to the litecoin-qt manual page β€” yes that's the user-commands one, and yes it's long, and yes we're doing all of it. no skimming. grab a snack. πŸ“


✨ NAME ✨

litecoin-qt β€” manual page for litecoin-qt v0.21.4.0


πŸ¦‹ SYNOPSIS πŸ¦‹

litecoin-qt [command-line options]

🌸 DESCRIPTION 🌸

Litecoin Core version v0.21.4.0-dirty

like... that's the version. she's a little dirty (literally, the string says so) but she's iconic and she works. πŸ’…


πŸ‘‘ OPTIONS πŸ‘‘

okay so this is the big one. every single flag, right here, no skipping, no cap.

  • -? β€” print this help message and dip out. that's it. that's the whole vibe. ✨
  • -alertnotify=<cmd> β€” run a command when a relevant alert comes through, or when we see a really long fork. the %s inside cmd gets swapped out for the message. πŸ“£
  • -assumevalid=<hex> β€” if this block is in the chain, assume it and all its ancestors are valid, and potentially skip verifying their scripts. set it to 0 to verify literally everything instead. defaults are:
    • default: 80cdb35c080484df5bf384b311fde3c4694d3405765bc0f596e9eb369ff286e5
    • testnet: 4a280c0e150e3b74ebe19618e6394548c8a39d5549fd9941b9c431c73822fbd5
    • signet: 4a280c0e150e3b74ebe19618e6394548c8a39d5549fd9941b9c431c73822fbd5
  • -blockfilterindex=<type> β€” keep an index of compact filters, per block. default is 1, and the known value is basic. if you don't give a <type>, or you give <type> = 1, then indexes for all known types get enabled. πŸ—‚οΈ
  • -blocknotify=<cmd> β€” run a command when the best block changes. %s in cmd gets replaced by the block hash. πŸ””
  • -blockreconstructionextratxn=<n> β€” extra transactions kept in memory for compact block reconstructions. default: 100.
  • -blocksdir=<dir> β€” where the blocks subdirectory lives, the one holding all the *.dat files. default: <datadir>. πŸ“
  • -blocksonly β€” whether to reject transactions from network peers. automatic broadcast and rebroadcast of any transactions from inbound peers gets disabled, unless that peer has the 'forcerelay' permission. RPC transactions are not affected by this. default: 0.
  • -conf=<file> β€” path to a read-only configuration file. relative paths get prefixed with the datadir location. default: litecoin.conf.
  • -daemon β€” run in the background as a daemon and accept commands. main character energy, but make it headless. 🧚
  • -datadir=<dir> β€” specify the data directory.
  • -dbcache=<n> β€” max database cache size, in MiB. range is 4 to 16384, default: 450. also, unused mempool memory gets shared into this cache (peep -maxmempool). πŸ’Ύ
  • -debuglogfile=<file> β€” where the debug log file goes. relative paths get prefixed with a net-specific datadir location. (-nodebuglogfile disables it entirely.) default: debug.log.
  • -includeconf=<file> β€” specify an additional configuration file, relative to the -datadir path. ⚠️ only usable from a configuration file β€” not from the command line.
  • -loadblock=<file> β€” import 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 keep transactions in the mempool longer than <n> hours. default: 336.
  • -par=<n> β€” set the number of script verification threads. range is -64 to 15; 0 = auto, and <0 = leave that many cores free. default: 0. 🧡
  • -persistmempool β€” whether to save the mempool on shutdown and load it again on restart. default: 1.
  • -pid=<file> β€” specify the pid file. relative paths get prefixed with a net-specific datadir location. default: litecoind.pid.
  • -prune=<n> β€” reduce storage requirements by enabling pruning (deleting) of old blocks. this lets the pruneblockchain RPC be called 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 -txindex and -rescan. and warning, bestie: reverting this setting means re-downloading the entire blockchain. no take-backs.

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.

  • -reindex β€” rebuild chain state and block index from the blk*.dat files on disk.
  • -reindex-chainstate β€” rebuild chain state from the currently indexed blocks. if you're in pruning mode, or blocks on disk might be corrupted, use full -reindex instead. πŸ’€
  • -settings=<file> β€” path to the dynamic settings data file. can be disabled with -nosettings. this file gets written at runtime and is not meant to be edited by users (use litecoin.conf instead for 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 the system default permissions instead of umask 077. only effective with wallet functionality disabled.
  • -txindex β€” maintain a full transaction index, used by the getrawtransaction RPC call. default: 0.
  • -version β€” print version and exit.

πŸ”Œ Connection options: πŸ”Œ

networking time. this is where the peer stuff lives. 🌈

  • -addnode=<ip> β€” add a node to connect to and try to keep that connection open (peep the addnode RPC command help for more info). you can specify 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 with 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]:port notation for IPv6. append =onion to tag any incoming connections to that address and port as incoming Tor connections. defaults:
    • 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. -noconnect disables automatic connections. (the rules for this peer are the same as for -addnode.) you can specify this multiple times to connect to multiple nodes.
  • -discover β€” discover your own IP addresses. default: 1 when listening and there's no -externalip or -proxy.
  • -dns β€” allow DNS lookups for -addnode, -seednode and -connect. default: 1.
  • -dnsseed β€” query for peer addresses via DNS lookup if you're low on addresses. default: 1 unless -connect is 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: 1 if there's no -proxy or -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 be pushed forward or backward by peers by this amount. default: 2100 seconds. πŸ•°οΈ
  • -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 the setnetworkactive RPC command.
  • -onion=<ip:port> β€” use a separate SOCKS5 proxy to reach peers via Tor onion services. set -noonion to disable. default: -proxy.
  • -onlynet=<net> β€” make outgoing connections only through network <net> (ipv4, ipv6 or onion). incoming connections are not affected by this. you can specify this multiple times to allow multiple networks.
  • -peerblockfilters β€” serve compact block filters to peers per BIP 157. default: 1.
  • -peerbloomfilters β€” support filtering of blocks and transactions with bloom filters. default: 0.
  • -permitbaremultisig β€” relay non-P2SH multisig. default: 1.
  • -port=<port> β€” listen for connections on <port>. heads up: nodes not using the default ports are unlikely to get incoming connections. defaults: 9333, testnet: 19335, signet: 19335, regtest: 19444.
  • -proxy=<ip:port> β€” connect through a SOCKS5 proxy. set -noproxy to 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 specify 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 add permission flags to the peers connecting to it. use [host]:port notation for IPv6. allowed permissions are:
    • bloomfilter β€” allow requesting BIP37 filtered blocks and transactions
    • noban β€” do not ban for misbehavior; implies download
    • forcerelay β€” relay transactions that are already in the mempool; implies relay
    • relay β€” relay even in -blocksonly mode, and unlimited transaction announcements
    • mempool β€” allow requesting BIP35 mempool contents
    • download β€” allow getheaders during IBD, no disconnect after maxuploadtarget limit
    • addr β€” responses to GETADDR avoid 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 same permissions as -whitebind. can be specified multiple times. 🫢

πŸŽ€ Wallet options: πŸŽ€

  • -addresstype

more coming, bestie β€” don't go anywhere πŸ’œ

okay so what type of addresses to use? you got "legacy", "p2sh-segwit", or "bech32", and the default is "bech32" bestie πŸ’…

  • -avoidpartialspends β€” group outputs by address, selecting all or none, instead of selecting on a per-output basis. privacy is improved because an address is only used once (unless someone sends to it after spending from it), but it may result in slightly higher fees as suboptimal coin selection may result due to the added limitation (default: 0 (always enabled for wallets with "avoid_reuse" enabled)) ✨
  • -changetype β€” what type of change to use ("legacy", "p2sh-segwit", or "bech32"). default is same as -addresstype, except when -addresstype=p2sh-segwit a native segwit output is used when sending to a native segwit address πŸ’Έ
  • -disablewallet β€” do not load the wallet and disable wallet RPC calls. no wallet, no stress 🚫
  • -discardfee=<amt> β€” the fee rate (in LTC/kB) that indicates your tolerance for discarding change by adding it to the fee (default: 0.0001). note: an output is discarded if it is 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 will be used when fee estimation has insufficient data. 0 to 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. so maybe don't go tiny bestie 😭
  • -maxapsfee=<n> β€” spend up to this amount in additional (absolute) fees (in LTC) if it allows the use of 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. path is to a directory containing wallet data and log files. if the path is not absolute, it is 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>/wallets if it exists, otherwise <datadir>) πŸ“
  • -walletnotify=<cmd> β€” execute command when a wallet transaction changes. %s in cmd is replaced by TxID and %w is replaced by wallet name. %w is not currently implemented on windows. on systems where %w is 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=1 to 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 supporting thread_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: 1 when no -daemon. to disable logging to file, set -nodebuglogfile) πŸ–¨οΈ
  • -shrinkdebugfile β€” shrink debug.log file on client startup (default: 1 when 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 -signetchallenge parameter πŸ–‹οΈ
  • -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 the hostname[: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 in share/rpcauth. the client then connects normally using the rpcuser=<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! ⚠️ this option is ignored unless -rpcallowip is also passed. port is optional and overrides -rpcport. use [host]:port notation for IPv6. this option can be specified multiple times (default: 127.0.0.1 and ::1 i.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 -rpcwhitelistdefault documentation for information on default whitelist behavior. πŸ“
  • -rpcwhitelistdefault

...and lowkey this one is the vibe check of your whole RPC situation, so listen up bestie 🫢

-rpcwhitelistdefault β€” sets the default behavior for rpc whitelisting. Unless rpcwhitelistdefault is set to 0, if any -rpcwhitelist is set, the rpc server acts as if all rpc users are subject to empty-unless-otherwise-specified whitelists. And if rpcwhitelistdefault is set to 1 and no -rpcwhitelist is set, the rpc server acts as if all rpc users are subject to empty whitelists. fr fr, it's giving "no keys, no entry" ✨


πŸ”₯ More Options (the main character energy continues) πŸ”₯

  • -server β€” accept command line and JSON-RPC commands. she said "I'm a server now, periodt" πŸ’…

πŸŽ€ UI Options πŸŽ€

like, the actual pretty-face settings for the app itself 🌸

  • -choosedatadir β€” choose data directory on startup (default: 0)
  • -lang=<lang> β€” set language, for example "de_DE" (default: system locale). yes bestie, actual <lang> placeholder, don't @ me πŸ’œ
  • -min β€” start minimized. tiny window, big personality πŸ¦‹
  • -resetguisettings β€” reset all settings changed in the GUI. a full factory-reset glow-up 😭
  • -splash β€” show splash screen on startup (default: 1)

okay so legally this part is important, not just vibes:

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>. no cap, read the license, bestie, it's literally right there πŸ™ˆ

and that's the whole page, we ate and left no crumbs πŸ’– this was litecoin-qt v0.21.4.0, dated October 2024, filed under LITECOIN-QT(1) πŸŽ€βœ¨ go be iconic with it, ily 🫢

πŸ“¦ where this page comes from