Questions tagged [bitcoin-cli]

The Bitcoin-Core wallet provides a Command-LIne-Interface (CLI) that can be used to retrieve information from the wallet or to perform certain actions.

72 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
214 views

How to calculate the purging low-fee for a node with the default mempool size?

I'm running a full node with a mempool size set to 2 GB. Default mempool size is 300 MB. At the moment (block hight 785,095) the mempool size is around 344 MB. Running rpc command bitcoin-cli ...
deyw's user avatar
  • 478
3 votes
0 answers
70 views

How to segregate wallet from bitcoin core | Run multiple wallets in different servers on one centralized bitcoin node

I am running bitcoin full node in a centralized server. I have many web applications running in various places. I want to connect this web applications with centralized full bitcoin node. How to ...
selva's user avatar
  • 31
3 votes
0 answers
6k views

bitcoin-cli - "error: couldn't connect to server" [solved as per comment]

I have bitcoind 0.13.1 running on a Raspberry Pi. I can see it on the bitcoin network using bitnodes.21.co but I can't connect to it locally with bitcoin-cli. My bitcoin.conf is: rpcuser=xxx ...
erols's user avatar
  • 53
3 votes
0 answers
181 views

Electrum via command-line: can generic blockchain info be requested?

For example can I ask the Electrum client via it's API what the height or version of the latest block is? Looking through the docs all I currently see is wallet commands.
pinhead's user avatar
  • 4,992
2 votes
0 answers
42 views

Is there a way to schedule bandwidth-intensive functions of bitcoind?

Some Internet service providers have different pricing at different hours. Is it possible to limit some functions of bitcoind to specific time ranges? ...especially initial block download (IBD) and/or ...
Robert Dickinson's user avatar
2 votes
0 answers
85 views

Create and spend P2WSH that locks coins with OP_CHECKLOCKTIMEVERIFY

I'm attempting to create a P2SWH address with a script that locks the coins for some time. And then I want to spend those coins from that address. I've read a lot, some of the most relevant: BIP173 ...
wazint's user avatar
  • 21
2 votes
0 answers
274 views

Low inbound connections and fixed getnetworkinfo score at 4

I spent hours researching for possible solutions, but couldn't find any. I set up my RPi4 bitcoin node about a month ago. It communicates through Tor (see torrc content). SOCKSPort 9050 Log notice ...
giusebage's user avatar
2 votes
0 answers
138 views

Add inputs and outputs to a transaction signed with sighash SINGLE | ANYONECANPAY

I created a transaction with one input and one output, and signed it using sighash SINGLE | ANYONECANPAY. Can I add further inputs and outputs with another wallet using bitcoin-cli?
RobinLinus's user avatar
2 votes
0 answers
975 views

bitcoin-cli is not using port specified in config

I have setup a bitcoin node in regtest mode with custom config and datadir. I start bittcoind with command: bitcoind -conf=bitcoin-demo.conf -regtest -datadir="testdatabtc" -daemon My bitcoin-...
Prashant Prabhakar Singh's user avatar
2 votes
0 answers
569 views

vout value in createrawtransaction

I have been following the Bitcoin Core tutorial on creating a simple raw transaction from an offline computer using the CLI. The part on createrawtransaction indicates that the raw transaction should ...
Adam Matan's user avatar
2 votes
0 answers
689 views

Mempool filled with 14KB transactions, tons of inputs, 0.15 mBTC fee

With the blockchain experiencing extremely high transaction volumes (most blocks at the 1MB size limit), I am interested in studying the "backlog" of transactions in the memory pool on my own full ...
Pressed250's user avatar
2 votes
1 answer
1k views

What is the required input for python-bitcoinlib getrawtransaction command?

I am running a bitcoin node on my machine, fully synced with RPC commands enabled, rpc server live and txindex=1. In the command-line I can run the following RPC call and obtain the information ...
Oonah's user avatar
  • 95
1 vote
0 answers
46 views

walletprocesspsbt rpc not signing psbt tx

After extensive regtest testing I've been unable to reproduce this issue. This is a gist to regtest psbt commands that do work. https://gist.github.com/miketwenty1/ecb9acdbca858878f1856b75493fef4c ...
Michael Tidwell's user avatar
1 vote
0 answers
67 views

New resync after a complete reindex

After an error with LevelDB (corrupted) I did a reindex and after that bitcoind automatically start a new synchronization. This seems much faster some times, it started from genesis and in 1 hour it ...
nico's user avatar
  • 89
1 vote
0 answers
67 views

How can I hash a block header using bitcoin-cli and terminal commands?

I would like to hash a block header using terminal commands and look at all the pretty leading 0s, but I can't figure out how to do this correctly using block header data from bitcoin-cli. Here is ...
vnprc's user avatar
  • 385
1 vote
0 answers
382 views

bitcoin TransactionBuilder is not a constructor

I'm trying to send bitcoin with the bitcoinjs-lib library and I get the following error: TypeError: bitcoin.TransactionBuilder is not a constructor at sendmoney (/Users/....../bitcoin.js:53:18) at ...
Salvador's user avatar
1 vote
0 answers
91 views

How to get time left using command line during initial block download?

When using GUI version of Bitcoin Core, time left before initial block download has completed is displayed. Using bitcoin-cli, one can see verificationprogress, but is there a way to get time left ...
sunknudsen's user avatar
1 vote
0 answers
1k views

How best to check the balance for a specific address using the Bitcoin-CLI?

I am currently calculating the balance of addresses from "listunspent" $unspends = $btc->listunspent(6, 9999999, array($PARAMS['address']))['amount'] But I don't think this is the ...
Jean Kássio's user avatar
1 vote
0 answers
26 views

locktime in getrawtransaction method in bitcoin-cli

what is different between Time, BlockTime and Locktime in " Getrawtransaction " method in bitcoin CLI? Actually I want to know that is locktime. Please help me :)
Sajjad Karami's user avatar
1 vote
0 answers
136 views

listreceivedbyaddress does not return any information about change addresses, is there any alternative?

listreceivedbyaddress does not return info about change addresses (m/84'/1'/0'/1/*) , only about receiving addresses (m/84'/1'/0'/0/*). I've found out that getreceivedbyaddress "address" ...
le0's user avatar
  • 187
1 vote
0 answers
114 views

CLI tool to sign a transaction using a private key in an offline computer

My Problem Consider an offline computer that has a list of private keys for bitcoin addresses. The computer has some flavor of Linux installed on it, so it can run common CLI tools and Python scripts. ...
Adam Matan's user avatar
1 vote
0 answers
527 views

Getting "N5boost10filesystem16filesystem_errorE" error when running bitcoin-cli

Backstory I'm running Bitcoin Core 0.20.1 on a Raspberry Pi 4 (running Raspberry Pi OS standard). It's just a standard install of Bitcoin Core, I built from source and installed into /home/pi/.bitcoin ...
Matt Ward's user avatar
  • 111
1 vote
1 answer
512 views

listunspent rpc/cli command doesn't seem to list unspent unconfirmed transactions for watch-only addresses

I am unable to list unspent unconfirmed transactions for watch-only addresses. Once the transaction gets at least 1 confirmation it gets included in the returned result. This is the command I am ...
elderapo's user avatar
  • 134
1 vote
1 answer
150 views

Will bitcoind import private keys for multi-sig descriptor with watch-only flag set to true?

I am importing a "warm" multi-sig quorum into bitcoind using importmulti like so: {"jsonrpc":"1.0","id":"curltest","method":"importmulti","params":[[{ "desc": "sh(multi(2,[eb2d2f9e/44'/1'/0']...
Fontaine's user avatar
  • 466
1 vote
0 answers
28 views

RPCConvertValues() call error

I'd like to call RPC programmatically, instead of using bitcoin-cli. when I call the function RPCConvertValues(), it always raise error RPCConvertValues() is defined here : https://github.com/...
Hyunsoo's user avatar
  • 363
1 vote
0 answers
431 views

How to add money to my Bitcoin Wallet and send my first Raw Transaction with OP_RETURN using bitcoin-cli

Background So after reading these two articles (Learning Bitcoin from the Command Line and Mastering Bitcoin), I am trying to piece together how I can get my first transaction with OP_RETURN data ...
Lance's user avatar
  • 221
1 vote
0 answers
147 views

Why am I getting error: "Signature must be zero for failed CHECK(MULTI)SIG operation" when using signrawtransactionwithkey

I am using descriptor based importmulti like so to import a 2 of 3 HD multisig cold storage wallet into my node: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importmulti", "...
Fontaine's user avatar
  • 466
1 vote
0 answers
168 views

How do I determine the descriptor of a given Extended Public Key?

I am trying to run the bitcoin-cli getdescriptorinfo on a ypub... extended public key. Every time I do this I receive the message: error code: -5 error message: Invalid descriptor How can I ...
carstenjanckerisgod's user avatar
1 vote
0 answers
62 views

how do I mark coins spent in invalid blocks as unspent?

I was just testing bitcoin (v17) in regtest mode with the local, built-in wallet. If I send money to an address (I don't own), generate 1, and then invalidate that block, the local wallet does not ...
Brannon's user avatar
  • 189
1 vote
0 answers
33 views

Paying to one address using inputs from multiple addresses under same seed

I am using bitcoin core and I was wondering. If I make a bitcoin payment using bitcoin-cli which has about 50 addresses registered to it. If the payment is for 1 BTC and I pay from the address A1 (let'...
Rohan Radia's user avatar
1 vote
0 answers
44 views

Is there a "print to file" parameter or its equivalent for bitcoin-cli; so that results from the daemon are recorded

Is there any way to "print to file" the queried results of the bitcoin-cli. This would be most helpful in my basic cross platform integration of a program I am making with QB64.
James's user avatar
  • 11
1 vote
0 answers
232 views

getblockchaininfo timeout using API only

Thanks in advance. If I call getblockchaininfo through bitcoin-cli it just works. It might take a while but it works all the time. If I call it from within a Python Script from bitcoin.rpc import ...
Jusoaresf's user avatar
1 vote
0 answers
231 views

Bitcoin-cli using getblock to retrieve historical data

I have recently set up a bitcoin node using bitcoind and want to perform some historical queries on the blockchain using getblock with verbosity set to 2. I am using the default bitcoin.conf file but ...
DanDan4561's user avatar
1 vote
0 answers
189 views

Bitcoin RPC - settxfee specific amount rather than based off transaction size?

How am I able to use the "sendfrom" command with a specific amount of 0.0005 BTC as fees no matter how small or big the transaction is in bytes? settxfee is based off fees per bytes.
Smittyyy's user avatar
1 vote
0 answers
619 views

"Error: Invalid RPC method" when i try to create block in regtest mode

I use Ubuntu. After i run bitcoind -regtest -daemon I tried to create blocks by running command: bitcoin-cli -regtest generate 101 And it returned error like this: Error: Invalid RPC method ...
Gin's user avatar
  • 11
1 vote
0 answers
297 views

Transaction instantly rejected trying to send from bitcoin-cli

Trying to send bitcoins with this command: bitcoin-cli sendfrom accountdos 1HC...kgT 0.03233376 1 I get this error immediately: The transaction was rejected! This might happen if some of the coins in ...
Rob's user avatar
  • 117
1 vote
1 answer
131 views

How can I pass Multiple addresses in Move command

I have to pass multiple addresses in move command but I am not able to pass as it is not accepting more than one wallet address Is there is any another way to move the balance to multiple addresses.
Dipen Chawla's user avatar
1 vote
1 answer
141 views

Why don't we have a help for Bitcoin Core CLI options in the same way as we do for CLI commands?

There is detailed help for bitcoin-cli commands using for example: ./src/bitcoin-cli getconnectioncount help. However, there isn't generally detailed help for bitcoin-cli options such as ./src/bitcoin-...
Michael Folkson's user avatar
1 vote
1 answer
107 views

bitcoin-cli WIF from xpriv, descriptor outputs clarity

Questions Is it possible for the bitcoin-cli command to extract WIFs from a ranged descriptor with a derivation path? If a descriptor is ranged it must have a xpriv key? If a descriptor has a xpriv ...
Michael Tidwell's user avatar
0 votes
1 answer
52 views

Can't to send btc with bitcoin-cli

I sent transaction with bitcoin-cli: bitcoin-cli sendtoaddress tb1q3qlv7k648hec866a0x395hq0h3sqcg2lrq5r0k 0.001 As an answer I've got transaction Id. But it still has no confirmation (a few hours). ...
Mikki Ukraine's user avatar
0 votes
0 answers
46 views

bitcoin-cli getrawtransaction not working as expected?

So I'm trying to set up a full bitcoin node. I compiled bitcoin core fine and I created a config file. I want to download the entire history of the blockchain, so I created a bitcoin.conf file in my ./...
Jonathan Gafar's user avatar
0 votes
0 answers
307 views

timeout on transient error: Could not connect to the server 127.0.0.1:8332

I finished installing Bitcoin on a raspberry pi a couple days ago and have a problem. Everything worked fine yesterday (I was able to run bitcoin-cli commands just fine) but now whenever I run "...
NeonTears's user avatar
0 votes
0 answers
67 views

Bitcoin core cli importdescriptors (miniscript)

I created a miniscript descriptor and wanted to see how it looked like in core(testnet). So i ran: importdescriptors "[{"desc": "wsh(or_d(pk([658b6bd9/44'/1'/0'/0]...
Jim Quick's user avatar
0 votes
0 answers
161 views

bitcoin-cli listunspent returns empty list

I'm running bitcoind bitcoind -regtest and want to send BTC to bcrt1qxhx5gq5gwaju2lh0pxnp7qpn4685cwvst4ql45 segwit address. Why listunspent returns empty list after sending somebtc to segwit address? ...
att's user avatar
  • 123
0 votes
0 answers
60 views

Why my bitcoin-cli getpeerinfo return an empty list?

I am running bitcoind and it is updating blocks as follows: However, when I have run bitcoin-cli getpeerinfo, it only returns an empty list, but not peers connected. So if there is no peer connected ...
Dzanvu's user avatar
  • 101
0 votes
0 answers
249 views

Bitcoin core V22 Authorization failed: Incorrect rpcuser or rpcpassword

I have my full node connected through Tor. I ended up changing my onion service and now I'm getting error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password ...
bitcronny's user avatar
0 votes
0 answers
387 views

I can not connect through RPC port bitcoind

I have set up bitcoind, and I am able to run bitcoin-cli commands, I am also able to make request through RPC. curl --user username:password --data-binary '{"jsonrpc": "1.0", "...
Istiaque Ahmed's user avatar
0 votes
0 answers
27 views

Need in my Bitcoin client wallets to restore

It's been a very very long time and I need a refresher on how I get into my Bitcoin client wallet I have the seed phase to restore it I do know to do it offline to cash out some. I mined on the ...
Pamela Mundy's user avatar
0 votes
0 answers
57 views

Setup bitcoind and be able to make a call to GetBlockTemplate

I have been able to get bitcoind started by giving it the right data directory and configuration file. I downloaded and ran rpcauth.py from https://github.com/bitcoin/bitcoin/blob/master/share/...
MarkRLV's user avatar
0 votes
2 answers
239 views

hdseed, hdseed, and bitcoin-qt

in bitcoincore, what is the use of hdseed please? can we restore a wallet with it? and above all an address with bitcoin on it thank you ! for IT
BTCStackEforCarl815's user avatar