Questions tagged [bitcoin-cli]

should be used for questions related to the Bitcoin Core RPC client

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Why I cant connect bitcoin-cli -regtest

I need generate satoshi in my bitcoin how test and i need use the -tesnet or -regtest, and when I press the command in my shell: bitcoind -regtest -daemon return: Bitcoin Core starting bitcoin-cli -...
1
vote
2answers
82 views

Why does bitcoin-cli not know about working directory of bitcoind?

I have a /ect/systemd/system/bitcoin.service with the following content and I am wondering, why bitcoin-cli getinfo tells me about a configuration file elsewhere: error: Could not locate RPC ...
0
votes
1answer
24 views

Problem with bitcoin-cli -datadir flag

I moved my blockchain directory, including bitcoin.conf, to an external drive D:\Bitcoin. Bitcoin Core starts and runs normally using this path, however when I try to use the command line interface, ...
0
votes
1answer
20 views

How to create descriptor watch-only wallet with bitcoin-cli in Bitcoin Core 0.21?

Using only command line (no GUI), how can I create watch only wallet based on descriptor and get first unused address? This is the descriptor: "wpkh([00000000/84h/0h/0h]xpub6DP....xyz/0/*)#...
5
votes
1answer
36 views

Bitcoin.conf setting for CPFP - how can I enable longer 'chains' of unconfirmed transactions?

I often receive an -32700 'Insufficient Funds' error when attempting to create 'child pays for parent' (CPFP) transactions using unconfirmed change output. This can be problematic since it can prevent ...
1
vote
2answers
366 views

Specified data directory does not exist - but it does…

anyone ever had a similar issue where the directory exists but bitcoin-cli isn't recognizing it? Perhaps this is related to me setting the folder up as a symlink to my external HDD? Thank you! ...
1
vote
1answer
82 views

Bitcoin-cli 0.19.1 Wallet not Sending from Addresses with Closest Amount?

I have a weird issue that I thought was fixed a few years back with Bitcoin wallet to reduce fees. I guess not, or I am missing something... My wallet received a transaction for the amount of 0....
1
vote
1answer
18 views

Setting the fee rate on regtest, or, quickly generating full blocks

I'm setting up some automated testing for a lightning wallet. At the heart of my tests is a bitcoind instance running in regtest mode. I need to be able to set the fee rate - both the fee rate ...
2
votes
1answer
95 views

Is there a way to give `bitcoin-cli` a different default conf directory instead of specifying it each time?

I have changed the configuration directory for bitcoind. However when I make a bitcion-cli request: bitcoin-cli getblockcount I get an error about RPC credentials using ~/.bitcoin/bitcoin/conf So for ...
0
votes
1answer
37 views

-regtest generate 101 not working

when I type bitcoin-cli -regtest generate 101 in the powershell it gives me this error: PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest generate 101 error code: -32601 error message: I ...
1
vote
2answers
631 views

Run Bitcoin and BitcoinCash in same server [closed]

I use debian 9 I have compile 2 files: bitcoinCashd -version Bitcoin ABC Daemon version v0.16.2.0-6af5e93 bitcoind -version Bitcoin Core Daemon version v0.15.1 So i need run in same server. Can ...
0
votes
1answer
47 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']...
0
votes
1answer
54 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-...
1
vote
1answer
27 views

What RPCs can I use to transform an address to a paying script? [closed]

What RPC(s) can I use to transform an address to a paying script (0014<addr>)?
1
vote
1answer
609 views

RPC Command to send from multiple accounts to one account (default - “”) in same wallet

I have small amounts in multiple accounts in the same wallet. I want to send all of them to default account (usually named as ""). Is their any RPC command available for this scenario? Thanks in ...
0
votes
1answer
43 views

Difference between createmultisig and addmultisigaddress on v 0.20.0?

What is difference between createmultisig and addmultisigaddress? I ran 2 methods for 2 same bitcoin address on bitcoin-cli but gives different addresses as multisig to me. the results are as follows: ...
0
votes
1answer
21 views

Set bitcoin fee lower than minimum estimatesmartfee value

Currently when I broadcast transactions, I seem to be unable to do so with a fee below ~10^-4 bitcoin (~$2 at current exchange rate). Any 'conftarget' value between approximately 100 - 1000 yields the ...
2
votes
1answer
29 views

How do I check if a particular address is 'owned' by a loaded wallet in Bitcoin Core?

I'm interested in knowing if there is an rpc method to determine whether or not an address was generated, and thus is owned by, a loaded Bitcoin Core wallet. I have a few addresses that I generated a ...
1
vote
1answer
24 views

Where are getnetworkinfo localservicesnames explained?

Bitcoin-cli getnetworkinfo returns a list of human readable localservicesnames. Where can one find more info about them?
0
votes
1answer
458 views

Bitcoin curl no reply

Hi I have made a curl to my server but get no reply . What am a missing rpcuser=rpcusername rpcpassword=rpcpassword rpcauth=rpcusername:generatedkey daemon=1 server=1 rpcport=8332 rpcbind=0.0....
2
votes
1answer
92 views

How to convert PSBT transaction (base64) to raw/serialized (hex) transaction?

Bitcoin Core's CLI has a converttopsbt command used to convert from raw transaction to PSBT transaction but how is it possible to convert from PSBT transaction to raw transaction using Bitcoin Core (...
0
votes
1answer
73 views

bitcoin-cli decodescript wrong output

If I try to get info in genesis block, there is 1 tx: "scriptPubKey": { "asm": "...
2
votes
1answer
111 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.
2
votes
1answer
1k views

bitcoin-cli very slow to respond to RPC calls (Raspberry Pi)

Running Bitcoin 0.11 on Raspberry Pi 2 (Quad core 900MHz 1GB RAM, 128GB Flash Drive for blockchain, 8GB SD Card for OS and software). Blockchain is fully synced, 13 connections. In htop, I see I'm ...
0
votes
1answer
338 views

Manage multiple users wallets for web wallet service

This already summaries the issue I'm currently trying to figure out to calculate the transaction fee to prevent negative balance. (testnet) I tried using createrawtransaction answered. When I tried ...
1
vote
1answer
112 views

Why can't a user import keys to the keypool for a blank wallet?

I am creating a blank wallet with the intention of adding keys to the keypool but get an error keys can only be imported to the keypool when private keys are disabled Why? It would be beneficial for ...
0
votes
1answer
75 views

Transaction net gain/loss

I have a TXid in my wallet that contains multiple transactions (multiple sends and receives). From what I read these are transactions the network creates facilitate splitting/combining multiple inputs/...
1
vote
0answers
22 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. ...
2
votes
1answer
141 views

How to generate valid BTC address to withdraw coins to

I set up bitcoind, and the complete blockchain is synced. I created a wallet, and I loaded the wallet. How can I generate an address to deposit BTC to? I tried bitcoin-cli getnewaddress and I get this ...
1
vote
0answers
43 views

Can a 0 confirmation Bitcoin Core change output be spent?

I have a Bitcoin Core wallet which has a utxo which I spent from, in a transaction where around 1% was sent to an external wallet address, with the ~99% change output remaining in the wallet, sent to ...
1
vote
1answer
76 views

Why is getdescriptorinfo returning an error “Invalid descriptor (code -5)”

I am using Bitcoin Core bitcoin-cli with getdescriptorinfo like so: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdescriptorinfo", "params":["sh(multi(2,[3c60330a/1]...
0
votes
0answers
13 views

Allowip block local cli command?

I am new to bitcoin node, recently I tried to running my node with rpcbind and rpcallowip, with the setting of rpcbind and rpcallowip, I am not able to stop the node with locall cli... error: server ...
1
vote
2answers
4k views

bitcoin-cli failed with error: incorrect rpcuser or rpcpassword

When I run this command bitcoind -testnet -printtoconsole -rpcuser=123456 -rpcpassword=123456 After bitcoind is up. I run this on the same Ubuntu 17.10 bitcoin-cli -testnet -rpcuser=123456 -...
0
votes
1answer
51 views

RPC getnewaddress error on v 0.20.0

I would like to new address generate with this command bitcoin-cli -testnet getnewaddress "adr1" "p2sh-segwit" but I get this msg: error message: Wallet file not specified (must ...
1
vote
1answer
94 views

bitcoin-cli how to verify balance

I've read that addresses alone are a "confusing" way to think about "where" bitcoins "are". Nonetheless I was formerly (2018) able to correlate what I got from bitcoin-...
0
votes
0answers
43 views

bitcoin-cli getbalance does not match balance with bitcoin-cli listtransactions

version of bitcoin-cli 0.17.1 when I try bitcoin-cli getbalance I get balance 0.00010471 BTC when I try bitcoin-cli listtransactions "*" 1000000 >aaa.txt and then calculate SUM(receive) -...
1
vote
0answers
52 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 ...
0
votes
0answers
13 views

Transactions with Bitcoin Mockup/Method

As I haven't got many resources I am unable to test this method however before I spend the time investing in servers and such, I would like to show my idea as to how I will be handling a payments ...
0
votes
0answers
24 views

Bitcoin-cli transaction viewing

I am attempting to create my own Bitcoin API for a website I have been building over the recent years and I need some sort of transaction system to handle payments with Bitcoin. I currently own a ...
0
votes
1answer
573 views

How find own address in testnet using bitcoin-cli?

I have bitcoin-core installed, I am running it in testnet mode. Now if I want to fund my wallet, I need to know the receiving address. How do find my receiving address, so that I can fund it and then ...
1
vote
1answer
55 views

Permission denied when attempting to backup wallet using backupwallet

When I call bitcoin@raspberrypi:~ $ bitcoin-cli backupwallet "backup.dat", I get the following error: error code: -4 error message: Error: Wallet backup failed! ~/.bitcoin/debug.log shows ...
1
vote
1answer
73 views

Change difficulty using bitcoin-cli/bitcoind in regtest mode

Is there an RPC command which would allow me to generate blocks under a given difficulty? For instance, I would like to do something like this: bitcoind -daemon -regtest bitcoin-cli -regtest ...
0
votes
2answers
470 views

Confirm transaction in regtest mode

I'm testing some wallet features on regtest. Here's the sequence so far: cash-cli -regtest generate 101 cash-cli -regtest getbalance 500.00000000 cash-cli -regtest getnewaddress newAddress1 ...
2
votes
1answer
30 views

Difference between bitcoin-cli getnetworkinfo version and bitcoind --version

I tried to upgrade bitcoin core from 0.18.0 to 0.20.0. When I ask for the version through bitcoind bitcoind --version it prints Bitcoin Core version v0.20.0 but if I ask for the version through ...
1
vote
1answer
58 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 ...
1
vote
1answer
156 views

Bitcoin core 0.19.1 RPC, 'sendtoaddress' not working!

Suppose this scenario: There are 2 wallets called wallet1 and wallet1 on the same node in testnet blockchain. wallet1 balance: 0.001 BTC wallet2 balance: 0 BTC I am trying to send 0.001 BTCs from ...
2
votes
2answers
94 views

Problem making multisig PSBT on walletcreatefundedpsbt

I'm fighting with PSBT to do a 2: 2 multisig with bitcoin-cli on testnet. Those are the steps I follow: Create a multisig with bitcoin-cli createmultisig 2 "["pubkey1", "pubkey2&...
2
votes
2answers
41 views

Stopping bitcoind on mac

One of my kids while learning more about bitcoin started bitcoind on my mac. Now I am unable to stop it. In my activity monitor, it shows a process named "bitcoind". I have stopped that ...
0
votes
1answer
25 views

Importaddress and conf

I'm wondering if its possible to add imported addresses into the bitcoin conf file. So, rather than calling the cli with importaddress, I would add the address to the conf file, with say, ...
2
votes
1answer
360 views

Need help to understand where bitcoin transaction has gone

I am new with bitcoin and I need some help from experienced members. I have a server with bitcoin core where we accept some payments and use bitcoin core as mercant. The problem is that we have got ...

1
2 3 4 5 6