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.

Filter by
Sorted by
Tagged with
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). ...
0 votes
1 answer
73 views

How to buy BTC with a non custodial wallet directly?

I apologize if this question does not make sense. But please correct me if I'm incorrect. If someone has a US Bank with a positive balance and has created a wallet using the bitcoin core "bitcoin-...
0 votes
1 answer
182 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
0 answers
33 views

Listunspent does not return all utxos [duplicate]

I am using Bitcoin Core to get all UTXOs for watchonly imported addresses. The strategy is the following: I load a new wallet await client.execute("loadwallet", ["testwallet"]) I ...
1 vote
0 answers
15 views

Building a CPFP raw transaction to confirm a force-closed Lightning channel [closed]

I am attempting to use bitcoin-cli createrawtransaction to build a CPFP transaction to pay for a low-fee channel close that has been unconfirmed for over a week. I have all of the details, i.e, txid, ...
2 votes
2 answers
258 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....
0 votes
2 answers
61 views

Bitcoin node : importprivkey does not import all getnewaddress previously created

I have a problem with my bitcoin wallet recovery process. I have a wallet with thousand of address attached created with RPC method 'getnewaddress'. I would like to have a recovery process for this ...
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 ...
0 votes
1 answer
66 views

Mainnet node sync really slowly with 12 tb seagate external hdd says data rate is 6gb/s

Hi my node is syncing really slowly I have the datadir in an external hard drive connected through usb. Says the data rate for this seagate 12TB is 6Gb/s but the syncing is slow in comparison to when ...
0 votes
1 answer
456 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 ...
0 votes
1 answer
116 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/...
0 votes
1 answer
253 views

Bitcoin Core Peer Connecting Problems

I am trying to get Bitcoin Coin to sync . I am having problem . I have tcp port and Udp port setup . Tcp port is inbound 8333 outbound 8333. But still no peer connection. I don't know what to do at ...
0 votes
1 answer
170 views

How do I create multiple Bitcoin addresses and send coins to other addresses from linux console?

I want to be able to create many Bitcoin addresses and transfer coins from those addresses to other addresses. It is better if it is available on a Linux server, through the command line. What ...
1 vote
1 answer
51 views

Understanding Bitcoin Blockchain Storage and the Usage of Merkle Trees [closed]

I'm currently learning about the Bitcoin blockchain. I've come across the concept of Merkle trees in the context of Bitcoin. I understand that Merkle trees are used to verify the integrity of the data,...
0 votes
1 answer
38 views

bitcoin rpc submitblock merkle root + raw tx (bad-txnmrklroot)

I wanted to test the submitblock rpc call in regtest but I seem to have some issues with the transactions I try to submit. I have the following raw transactions: ...
1 vote
1 answer
58 views

Get utxos for an address without rescanning the whole chain

In order to gather the utxos for an address importdescriptors will rescan the blockchain. Is there another way to get all the utxos for an address / descriptor without having to rescan the block chain?...
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 ./...
1 vote
1 answer
148 views

p2wpkh spending problem

I use unsynced bitcoin core wallet because data is too costly and I do not trust anything other than bitcoin core, people told me to do so. Playing around I originated this transaction id: ...
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
0 votes
1 answer
67 views

401 Unauthorized when try to connect to bitcoin-core using curl

The problem: I try to run a curl request but get 401 Unauthorized error. curl --user testuser --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method&...
0 votes
1 answer
42 views

Generate regtest blocks with Bitcoin-Qt

I'm prepping for a tabconf workshop and trying to make the simplest uX for workshop attendees. Using bitcoincore.org for binaries: The Mac dmg doesn't come with a bitcoin-cli like with Linux. It does ...
0 votes
1 answer
49 views

Bitcoin core: How to get transactions data having block?

There's a verbose output of the very first block info: bitcoin-cli getblock 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f 2 { "hash": "...
3 votes
2 answers
2k views

Is there a way to use a webservice for `createrawtransaction`?

createrawtransaction is a bitcoin-cli command that generates a raw transaction given one or more transaction ids and a list of Outputs, which are the destination amounts that will receive the funds. ...
3 votes
1 answer
967 views

How to install bitcoin-cli on MacOS?

I have installed bitcoin-core with Homebrew on my MacOS, but the only package installed is Bitcoin-Qt. How do I also install bitcoin-cli? (Just want to play with the commands for learning.)
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']...
2 votes
2 answers
524 views

How To Get Master Fingerprint

say I have master private key from dumpwallet command: extended private masterkey: tprv8ZgxMBicQKsPdcg8UJAGEEQM6zQgyxgXXXXXXXX from there, I derived child key using bx hd-private command $ xprv=...
2 votes
1 answer
84 views

How can I look at the genesis block raw txn?

If I try to look at the txn in the genesis block, I get: root@0eef0ed7601c:/home/bitcoin# bitcoin-cli getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b error code: -5 ...
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 "...
-1 votes
1 answer
172 views

Is there any web3.py equivalent for Bitcoin?

Is there a good python library to connect to my locally running bitcoin node and query it? Such as view data block by block, txs, network difficulty at the time of each block, and other parameters? ...
0 votes
1 answer
56 views

bitcoin-cli: Get transaction count of wallet without listtransactions

I am trying to find a way to get the number of transactions returned from the JSONRPC interface without relying on listtransactions. The reason for this is that if the wallet has too many transactions ...
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 ...
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 ...
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]...
2 votes
1 answer
111 views

Issue listing regtest wallets

Questions: Should it be assumed if you're testing with bitcoincore you should always have a separate datadir per version/bin? Based on weirdness below, (not being able to list regtest wallets), does ...
0 votes
1 answer
66 views

How Can I find sat/vb of a given Txid using bitcoin-cli

I want to find the sat/vb of a tx in a mempool. I am using bitcoin-cli to do this. cmd = ['bitcoin-cli', 'getrawtransaction', txid, "true"] This is the command that I extrect the info of the ...
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 ...
0 votes
1 answer
55 views

How can I get the txids of memblock that will be confirmed in the next blcok using bitcoin-cli?

I want to get the txids of the (mem-pool 0 I mean the mempool block that will next to be confirmed) using bitcoin-cli. Basicly I want to get the txids in https://mempool.space/tr/mempool-block/0 this ...
3 votes
1 answer
157 views

Sweep Taproot and native Segwit v0 coins in a single transaction using Bitcoin Core wallet

My goal Learn how to send an imported tr(wif) and wpkh() utxo in the same transaction. What I've tried I imported a WIF utxo containing a v1 segwit utxo. bitcoin-cli importdescriptors '[{"desc&...
3 votes
2 answers
408 views

How to increase fee of existing transaction with bitcoin-cli

I have broadcast a trasnaction from my bitcoincli wallet using this command: ./bitcoin-cli sendtoaddress ADDRESSGOESHERE 0.1 The problem is, it has set the fee to a very low amount by default. After ...
2 votes
1 answer
174 views

Bitcoin 22.x + doesn't decode addresses for multisig

anyone can suggest why addresses won't decode in newer versions? example: bitcoin-core 0.21 bitcoin-cli getrawtransaction 9297132b89461da9dee0364db49eeb1c32770550bc5b82e02f1cbaab01043aa3 1 { "...
2 votes
1 answer
228 views

use mnemonic in bitcoin rpc using bitcoin cli with none legacy wallets

I have my 12 words (mnemonic) and I know that I can get zpriv, xpriv, private keys and anything from that. but when I try to import them to my bitcoin rpc, I can only import them into legacy wallets ...
2 votes
1 answer
53 views

json parsing error with createrawtransaction with bitcoin-cli in regtest

I have been trying to use getrawtransaction to work with raw transactions in regtest and I have not been able to get it to parse correctly. the general format I am using is this. I am running this ...
5 votes
1 answer
147 views

Testing pruning logic with bitcoind

I'd like to test pruning logic using bitcoind in regtest mode, however, given the nature of regtest, blocks are rather empty (if not fully). Is there any way of easily generating full blocks so the ...
3 votes
1 answer
143 views

Bitcoin Core v23 using more inputs than necessary costing more fees

Bitcoin core v23 has been handling input selection just fine until the feeRate (in kvb) was set to "0.0005". It began aggressively consolidating inputs costing me more in paying for ...
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 ...
1 vote
2 answers
153 views

Retrieve address corresponding to pubkey using bitcoin-cli/RPC

We are using jgarzik/python-bitcoinrpc and in some cases curl to retrieve data from bitcoin core using RPC. However, for some txns where pubkey is used, bitcoin-cli/rpc gives no address in ...
-1 votes
1 answer
54 views

How to Sign Bitcoin Transaction from two or more children wallet in HD wallet

How can I handle a situation where I have bitcoin on two or more different wallets with a single phrase, how can I sign the two transactions to a friend. Example: I have 2BTC in a wallet address that ...
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 ...
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? ...
2 votes
2 answers
5k views

Get hex string for a public address

If I want to watch a public address, I need the hex string for that address, because the importpubkey command only takes a hex input. How can I convert a base 58 address to a hex string using the ...

1
2 3 4 5
9