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
13 views

Possible To --enable-wallet After Syncronization With Blockahin?

I am running bitcoind from the command line (--without-gui) and my system apparently does not have the correct Berkley DB version (4.8+). Therefore, I chose to run the program without the wallet ...
1
vote
1answer
34 views

How to get info for public address from bitcoin-cli + local db? (Can it be done without creating a wallet?)

I just started running my own full node. IBD is finished, and I'm now learning how to use bitcoin-cli. First I would like to extract all the available information for one or more public addresses ...
2
votes
1answer
68 views

Setting up lightning with bitcoin-core

I have some questions about bitcoin-core and lightning-network-daemon. I have succesfully set up a bitcoin node running on Ubuntu Server 20.04 by following this tutorial: https://bitcoin.org/en/full-...
0
votes
0answers
22 views

bitcoin-cli sendmany but not shown explorer

I sent bitcoin to 93 people with sendmany function. It made a tx id = "abc7f3f878fe0fff59bd295ea1a7f86c4a13f1ea8bbd3eb52629f040d06069b4" but I couldn't show in bitcoin explorer. I ran ...
0
votes
0answers
19 views

How do I view the list of all existing Unspent Transaction Outputs, not just for my wallet, with Bitcoin Core utilities or any other software? [duplicate]

I'm preparing data for a research/analysis, and I'm a bit new to bitcoin-cli. I need to obtain data for the chart like this: https://www.blockchain.com/charts/utxo-count , with only difference that it ...
0
votes
0answers
23 views

How do I get the signature and how do I apply it onto my transaction using bitcoin-cli?

Guide link: https://comit.network/blog/2018/06/23/connect-all-the-blockchains/ For context I'm following a guide I found online about how to create a HTLC (Hash-time lock contract) and have it work ...
1
vote
1answer
30 views

Is it possible to keep bitcoind running with the blockchain synced up to only a certain height?

I am currently using bitcoind to do some transaction analysis on a small part of the blockchain. However, after the local copy of the blockchain reaches the -stopatheight value, it quits. Is there a ...
0
votes
1answer
90 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 -...
0
votes
1answer
37 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
61 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/*)#...
6
votes
1answer
65 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
1answer
25 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
120 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
63 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-...
0
votes
1answer
41 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
46 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
28 views

Where are getnetworkinfo localservicesnames explained?

Bitcoin-cli getnetworkinfo returns a list of human readable localservicesnames. Where can one find more info about them?
1
vote
1answer
100 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....
2
votes
1answer
169 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 (...
1
vote
1answer
29 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>)?
0
votes
1answer
50 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
0answers
33 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
235 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
62 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 ...
0
votes
0answers
15 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 ...
0
votes
1answer
50 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
125 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
0answers
91 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
27 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 ...
1
vote
1answer
87 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 ...
2
votes
1answer
43 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 ...
2
votes
2answers
110 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&...
1
vote
1answer
116 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 ...
2
votes
2answers
51 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
28 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, ...
1
vote
2answers
70 views

How to extract all the bitcoin addresses with bitcoin-cli?

I am trying to get all existing addresses on the bitcoin blockchain with bitcoin-cli. It seems that I can get addresses from vout that are of type "pubkeyhash". If the type of vout is "...
1
vote
1answer
117 views

Bitcoin Core private key import

I would like to import the private keys from a multisig paper wallet to Bitcoin Core. My aim is to convert the paper wallet to an electronic wallet and to be able to export the corresponding wallet....
1
vote
1answer
35 views

How is a multisig transaction transferred between multiple signers?

I'm trying to learn more about doing multisig transactions. The examples I've seen show the signing of the transaction with 2-of-3, or 3-of-3, where the signatures are added, essentially, at the same ...
2
votes
1answer
59 views

Does testmempoolaccept check all possible rejection rules?

Is there any rejection rule that testmempoolaccept will not check, or is it safe to assume that if it passes testmempoolaccept validation it will be at least broadcast? Mostly concerned about complex ...
1
vote
2answers
72 views

How to raise the bad-txns-vout-negative error?

I wanted to replicate the bad-txns-vout-negative error scenario. I tried the following but getting 'Amount out of range' only: Here is the command i tried: bitcoin-cli -named createrawtransaction ...
0
votes
1answer
45 views

signmessage and verifymessage CLI commands not accepting Address from getnewaddress?

I am trying the following commands on my v0.19.0.1 Core implementation: CLI signmessage $(CLI getnewaddress) <message> and the identical CLI signmessagewithprivkey $(bitcoin-cli dumpprivkey $(...
-1
votes
1answer
62 views

What can I expirement with BitcoinCore on my own?

I have a simple faculty assignment where I have to do some experiments with transactions or experiment with the Bitcoin protocol or maybe with wallet code. Work on that assignment shouldn't last more ...
0
votes
1answer
35 views

In bitcoin-cli getpeerinf call what does “-1” mean as a “synced_headers” or “synced_blocks” value?

Sometimes I see this in getpeerinfo: "synced_headers": -1, "synced_blocks": -1, sometimes it's only synced blocks at -1. What does that mean?
0
votes
1answer
44 views

How to know the destination address of a multisig?

Run this command: bitcoin-cli getrawtransaction 56214420a7c4dcc4832944298d169a75e93acf9721f00656b2ee0e4d194f9970 2 You will see the first vout is a multisig as follow: { "value": 0....
0
votes
0answers
76 views

Getting “Invalid or non-wallet transaction id” error on transactions definitely from wallet

Very recently (within the past hour), I've been unable to get transactions for wallet addresses. It also returns 0 received when running getreceivedbyaddress and entering an address that I've ...
0
votes
1answer
35 views

GetBlockChecked always returning genesis block?

currently I'm exploring Bitcoin source code and I tried to add custom function getblockvalue inside of blockchain.cpp. Purpose of function is to return sum of all transaction outputs inside of a ...
0
votes
1answer
88 views

Bitcoin V0.1 Not Connected

My Bitcoin V 0.1 says, "not connected" when I try to generate coins. I have ensured the port is connected through the firewall. Also, I have read that V 0.1.3 corrected this problem. However,...
0
votes
0answers
38 views

How to manually compute a descriptors checksum?

In the docs it says: The checksum for a descriptor without one can be computed using the getdescriptorinfo RPC. I would like to build a recovery tool where many descriptors are imported, calling ...
1
vote
1answer
61 views

How do I start -testnet in -deprecatedrpc to test a script?

I hope all is well during our COVID-19 pandemic. My question: How do I start "bitcoind -testnet" in "-deprecatedrpc=signtransaction" mode? Do I simply start it the same way without ...

1
2 3 4 5 6