ELEMENTS-CLI(1)

πŸ“¦
version 23.3.4 Β· 2 versions
, in nixpkgs unstable

πŸ’… ELEMENTS-CLI β€” the manual page, but make it make sense

okay so this is the man page for elements-cli (that's the User Commands one, bestie, in case you were wondering which manual section you wandered into) ✨


🌸 NAME 🌸

elements-cli β€” manual page for elements-cli v23.3.4. that's it, that's the name section, she's short and sweet πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

elements-cli [options] <command> [params]  Send command to Elements Core
elements-cli [options] -named <command> [name=value]...  Send command to
Elements Core (with named arguments)
elements-cli [options] help                List commands
elements-cli [options] help <command>      Get help for a command

like, four whole ways to talk to your node. pick your fighter 🫢


πŸŽ€ DESCRIPTION πŸŽ€

Elements Core RPC client version v23.3.4. that's literally the whole description and honestly? iconic minimalism πŸ’…


✨ OPTIONS ✨

  • -? β€” prints this help message and dips. that's it. bye πŸ‘‹
  • -addrinfo β€” gets you the number of addresses the node knows about, broken down per network and as a total, after filtering for quality and recency. heads up though: the total number of addresses the node knows may actually be higher than what you see. lowkey mysterious of it.
  • -color=<when> β€” color setting for CLI output (default: auto). valid values: always, auto (adds color codes when standard output is connected to a terminal and the OS is not WIN32), never. pick your aesthetic 🎨
  • -conf=<file> β€” specify the configuration file. relative paths get prefixed by the datadir location. (default: elements.conf)
  • -datadir=<dir> β€” specify the data directory. your stuff lives here 🏠
  • -generate β€” generate blocks, which is equivalent to the RPC getnewaddress followed by the RPC generatetoaddress. optional positional integer arguments are the number of blocks to generate (default: 1) and the maximum iterations to try (default: 1000000), equivalent to the RPC generatetoaddress nblocks and maxtries arguments. example: bitcoin-cli -generate 4 1000 β€” yes bestie, the example really does say bitcoin-cli, i don't make the rules πŸ™ˆ
  • -getinfo β€” get general information from the remote server. note that unlike server-side RPC calls, the results of -getinfo are the result of multiple non-atomic requests. some entries in the result may represent results from different states (e.g. the wallet balance may be as of a different block from the chain state reported). so like, don't treat it as one perfect snapshot, mkay? 😭
  • -named β€” pass named instead of positional arguments (default: false)
  • -netinfo β€” get network peer connection information from the remote server. an optional integer argument from 0 to 4 can be passed for different peer listings (default: 0). pass "help" for detailed help documentation.
  • -rpcclienttimeout=<n> β€” timeout in seconds during HTTP requests, or 0 for no timeout. (default: 900)
  • -rpcconnect=<ip> β€” send commands to the 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
  • -rpcport=<port> β€” connect to JSON-RPC on <port> (default: 7041, testnet: 18332, signet: 38332, regtest: 18443)
  • -rpcuser=<user> β€” username for JSON-RPC connections
  • -rpcwait β€” wait for the RPC server to start. patience is a virtue etc etc ⏳
  • -rpcwaittimeout=<n> β€” timeout in seconds to wait for the RPC server to start, or 0 for no timeout. (default: 0)
  • -rpcwallet=<walletname> β€” send RPC for a non-default wallet on the RPC server (needs to exactly match the corresponding -wallet option passed to elementsd). this changes the RPC endpoint used, e.g. http://127.0.0.1:8332/wallet/<walletname>
  • -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 the 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, -stdinrpcpass consumes the first line, and -stdinwalletpassphrase consumes the second. line order matters, don't get it twisted πŸ’€
  • -stdinwalletpassphrase β€” read the 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:

(that's genuinely all it says here β€” the heading, then straight into the next heading. she's a little empty, but we respect her 🫢)


⛓️ Chain selection options:

  • -chain=<chain> β€” use the chain <chain> (default: liquidv1). reserved values: main, test, signet, regtest, liquidv1, liquidv1test, liquidtestnet
  • -con_blockheightinheader β€” whether the chain includes the block height directly in the header, for easier validation of block height in low-resource environments. (default: 1)
  • -con_has_parent_chain β€” whether or not there is a parent chain.
  • -con_max_block_sig_size β€” max allowed witness data for the signed block header.
  • -con_parent_chain_signblockscript β€” whether the parent chain uses pow or signed blocks. if the parent chain uses signed blocks, the challenge (scriptPubKey) script. if not, an empty string. (default: empty script [ie parent uses pow])
  • -con_parentpowlimit β€” the proof-of-work limit value for the parent chain.
  • -con_signed_blocks β€” signed blockchain. uses input of -signblockscript to define what signatures are necessary to solve it.
  • -fedpegscript β€” the script for the federated peg enforce from genesis block. this script may stop being enforced once dynamic federations activates. πŸ‘€
  • -parentgenesisblockhash β€” the genesis blockhash of the parent chain.
  • -signblockscript β€” signed blockchain enumberance. only active when -con_signed_blocks is set to true. (yes, "enumberance" β€” that's how the original spells it, i'm not touching it πŸ’€)
  • -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.

πŸ’œ Elements Options:

  • -acceptunlimitedissuances β€” allow unblinded issuance amounts to exceed 21 million units
  • -con_blocksubsidy β€” defines the amount of block subsidy to start with, at genesis block, in satoshis.
  • -con_connect_genesis_outputs β€” connect outputs in genesis block to utxo database.
  • -con_csv_deploy_start β€” starting height for CSV deployment. (default: -1, which means ACTIVE from genesis)
  • -con_dyna_deploy_signal β€” whether to signal for the Dynamic Federations deployment (default: 1).
  • -con_elementsmode β€” use Elements-like instead of Core-like witness encoding. this is required for CA/CT. (default: 1)
  • -con_mandatorycoinbase β€” all non-zero valued coinbase outputs must go to this scriptPubKey, if set.
  • -dynamic_epoch_length β€” per-chain parameter that sets how many blocks dynamic federation voting and enforcement are in effect for.
  • -enforce_pak β€” causes standardness checks to enforce Pegout Authorization Key (PAK) validation before dynamic federations, and consensus enforcement after.
  • -multi_data_permitted β€” allow relay of multiple OP_RETURN outputs. (default: -enforce_pak)
  • -pak β€” sets the 'first extension space' field to the pak entries ala pre-dynamic federations. only used for testing in custom chains.
  • -total_valid_epochs β€” per-chain parameter that sets how long a particular fedpegscript is in effect for.

Copyright (C) 2009-2026 The Elements Project developers Copyright (C) 2009-2026 The Bitcoin Core developers

please contribute if you find Elements Core useful!! visit <https://elementsproject.org/> for further information about the software. the source code is available from <https://github.com/ElementsProject/elements>. 🫢

⚠️ real talk: this is experimental software. distributed under the MIT software license, see the accompanying file COPYING or <https://opensource.org/licenses/MIT>

🌈 the cute sign-off 🌈

and that's the whole page, bestie!! this was elements-cli v23.3.4, dated September 2026, and it ate. literally no crumbs. go forth and RPC responsibly πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from